Skip to content
On this page

Function: checkOcToken()

TypeScript
function checkOcToken(token: string, options?: VerifyOcTokenOptions): Promise<OcTokenCheck>;

Defined in: me-client/src/server.ts:171 (opens in a new tab)

verifyOcToken, telling a token that fails from a key set that can't be read (see OcTokenCheck). For the route that receives the token from the sign-in popup. Throws on an option it does not read, or an issuer it may not fetch from.

ParametersLink to this section

ParameterType
tokenstring
optionsVerifyOcTokenOptions

ReturnsLink to this section

Promise<OcTokenCheck>