Function: initiateBackchannelAuthentication()

May 28, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ initiateBackchannelAuthentication(config, parameters): Promise<BackchannelAuthenticationResponse>

Initiates a Client-Initiated Backchannel Authentication Grant using parameters from the parameters argument.

Parameters

ParameterTypeDescription
configConfiguration-
parametersRecord<string, string> | URLSearchParamsAuthorization request parameters that will be sent to the backchannel authentication endpoint

Returns

Promise<BackchannelAuthenticationResponse>

Example

let config!: client.Configuration
let scope!: string
let login_hint!: string // one of login_hint, id_token_hint, or login_hint_token parameters must be provided in CIBA

let backchannelAuthenticationResponse =
  await client.initiateBackchannelAuthentication(config, {
    scope,
    login_hint,
  })

let { auth_req_id } = backchannelAuthenticationResponse