Function browserDecodeToken

  • This is a helper function for single page applications. Use it when server sends a token to render

    Do NOT use this function the server. Getting token data + meta should only be done through the methods of OtpService class

    Type Parameters

    • Data = unknown

    Parameters

    • token: string

      Token provided by the server

    Returns OtpData<Data>

    All data needed to display otp ui on the client

Generated using TypeDoc