Function: useJwtResponseMode()

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.


โ–ธ useJwtResponseMode(config): void

This changes the response_mode used by the client to be jwt and expects the authorization server response passed to authorizationCodeGrant to be one described by JARM.

Parameters

ParameterType
configConfiguration

Returns

void

Examples

Usage with a Configuration obtained through discovery

let server!: URL
let clientId!: string
let clientMetadata!: Partial<client.ClientMetadata> | string | undefined
let clientAuth!: client.ClientAuth | undefined

let config = await client.discovery(
  server,
  clientId,
  clientMetadata,
  clientAuth,
  {
    execute: [client.useJwtResponseMode],
  },
)

Usage with a Configuration instance

let config!: client.Configuration

client.useJwtResponseMode(config)

See

JARM