| polished_config {polished} | R Documentation |
global configuration for polished authentication
Description
global configuration for polished authentication
Usage
polished_config(
app_name,
api_key = get_api_key(),
firebase_config = NULL,
is_invite_required = TRUE,
sign_in_providers = "email",
is_email_verification_required = TRUE,
cookie_expires = 365L,
is_auth_required = TRUE,
is_two_fa_required = FALSE
)
global_sessions_config(...)
Arguments
app_name |
the name of the Shiny app. |
api_key |
the |
firebase_config |
if using Social Sign In (see https://polished.tech/docs/03-social-sign-in
for more documentation), a list containing your Firebase project configuration (Default:
|
is_invite_required |
|
sign_in_providers |
a character vector of sign in providers to enable. Valid values are |
is_email_verification_required |
|
cookie_expires |
the number of days before a user's cookie expires.
Set to |
is_auth_required |
|
is_two_fa_required |
boolean specifying whether or not 2 factor authentication is required. Defaults
to |
... |
arguments to pass to |
Details
This is the primary function for configuring polished. It configures your app's instance of
the Polished class that manages polished authentication. Call this function in
your global.R file. See https://github.com/Tychobra/polished/blob/master/inst/examples/polished_example_01/global.R
for a complete example.
Value
invisible(NULL)
Examples
## Not run:
# global.R
polished_config(
app_name = "<your app name>",
api_key = "<your API key>",
firebase_config = list(
apiKey = "<Firebase apiKey>",
authDomain = "<Firebase authDomain",
projectId = "<Firebase projectId>"
),
sign_in_providers = c(
"email",
"google",
"microsoft"
)
)
## End(Not run)