Skip to main content

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.

Package: core

Defined in: clients/core.ts:1636

Parameters

params
LoginWithOauthParams
required

Response

A successful response returns the following fields:
returns
BaseAuthResult
required
A promise that resolves to a BaseAuthResult, which includes:
  • sessionToken: the signed JWT session token.
I