FutureverseAuthClient
and configure it with the required parameters: clientId
, environment
, and redirectUri
. These settings establish your authentication client (authClient) and determine how users interact with authentication. A custom IDP URL can be set to overwrite the default pass online environments.
Here’s an example:
clientId
and redirectUri
are required parameters.clientId
: Unique ID obtained by registering your client.environment
: The deployment environment (e.g., ‘development’, ‘staging’, ‘production’).redirectUri
: The URL where users are redirected post-authentication. Enter the redirect URL used when registering your client.responseType
: Choose between code
or id_token
string.userStore:
Define a user storage option.clientSecret:
Client-specific secret key.signInFlow
: redirect
or popup
string. Set to popup
when using the Auth UI modal (redirect
is the default).signInFlow
parameter with 'popup'
as its value.