- This function logs in a user using the provided OIDC token and public key.
- Optionally invalidates any existing sessions for the user if
invalidateExistingis 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.
Package: core
Defined in: clients/core.ts:1763
A promise that resolves to a BaseAuthResult, which includes:
sessionToken: the signed JWT session token.