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.
▸ enableDetachedSignatureResponseChecks(config
): void
This builds on top of useCodeIdTokenResponseType and enables the response to be validated as per the FAPI 1.0 Advanced profile.
Parameter | Type |
---|---|
config |
Configuration |
void
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.useCodeIdTokenResponseType,
client.enableDetachedSignatureResponseChecks,
],
},
)
Usage with a Configuration instance
let config!: client.Configuration
client.useCodeIdTokenResponseType(config)
client.enableDetachedSignatureResponseChecks(config)