Portal Auth
constructor(authEnvironmentId: String, redirectUrl: String, apiHost: String = PortalAuthApi.DEFAULT_API_HOST, magicLink: MagicLinkConfig? = null, isAccountAbstracted: Boolean? = null)
Parameters
auth Environment Id
The auth environment these logins belong to. Also the session's storage key, so two instances sharing one share the persisted session.
redirect Url
Where the Portal backend sends the user once the magic link (or a provider) is done. Must be allow-listed for the auth environment, and must match the intent-filter the host app registers.
api Host
Optional API host override.
magic Link
Required only by sendMagicLink; OAuth-only apps never need it.
is Account Abstracted
When set, requests an account-abstracted client.
Throws
when authEnvironmentId or redirectUrl is blank.