@twinfinity/core
    Preparing search index...

    Interface IdentityToken

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

    Custom claims can be accessed with the index operator.

    identityToken['my-custom-claim'] // returns the custom claim if set in the id_token, otherwise undefined
    
    interface IdentityToken {
        aud: string;
        email: string;
        exp: number;
        family_name: string;
        given_name: string;
        iat: number;
        iss: string;
        name: string;
        sub: string;
        readonly [key: string]: any;
    }

    Indexable

    • readonly [key: string]: any
    Index

    Properties

    aud: string
    email: string
    exp: number
    family_name: string
    given_name: string
    iat: number
    iss: string
    name: string
    sub: string