Configuration for global sessions
This is the primary function for configuring polished
. It configures your app's instance of the
Sessions
class that manages your user's polished
sessions. 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.
global_sessions_config( app_name, api_key, firebase_config = NULL, admin_mode = FALSE, is_invite_required = TRUE, api_url = "https://api.polished.tech", sign_in_providers = "email", is_email_verification_required = TRUE, is_auth_required = TRUE, sentry_dsn = NULL )
app_name |
the name of the app. |
api_key |
the API key. Either from https://polished.tech or your on premise |
firebase_config |
a list containing your Firebase project configuration. This list should have the following named elements:
|
admin_mode |
|
is_invite_required |
|
api_url |
the API url. Defaults to |
sign_in_providers |
the sign in providers to enable. Valid values are |
is_email_verification_required |
|
is_auth_required |
|
sentry_dsn |
either |
## Not run: # global.R global_sessions_config( app_name = "<your app name>", api_key = "<your API key>" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.