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:
Use the same client ID and redirect URI for the environment you configured your client in.
clientId and redirectUri are required parameters.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.
Optional parameters:
responseType: Choose betweencodeorid_tokenstring.userStore:Define a user storage option.clientSecret:Client-specific secret key.signInFlow:redirectorpopupstring. Set topopupwhen using the Auth UI modal (redirectis the default).
Developers who opt to use the Auth UI plug-and-play modal, supplied by AuthUiProvider, must include a
signInFlow parameter with 'popup'as its value.