Package: react-wallet-kit
Overview
Logs in a user using OAuth authentication.- This function logs in a user using the provided OIDC token and public key.
- Optionally invalidates any existing sessions for the user if
invalidateExisting
is set to true. - Stores the resulting session token under the specified session key, or the default session key if not provided.
- Handles cleanup of unused key pairs if login fails.
Parameters
Response
A successful response returns the following fields:A promise that resolves to a BaseAuthResult, which includes:
sessionToken
: the signed JWT session token.