Skip to main content

IdentityToken

A decoded and parsed id_token where the expected claims are explicitly typed.

Custom claims can be accessed with the index operator.

@example
identityToken['my-custom-claim'] // returns the custom claim if set in the id_token, otherwise undefined

Indexable

[key: string]: any | null | undefined

Index

Properties

readonlyaud

aud: string

readonlyemail

email: string

readonlyexp

exp: number

readonlyfamily_name

family_name: string

readonlygiven_name

given_name: string

readonlyiat

iat: number

readonlyiss

iss: string

readonlyname

name: string

readonlysub

sub: string