@aptos-labs/ts-sdk - v5.1.4
    Preparing search index...

    Function getIssAudAndUidVal

    • Parses a JWT and returns the 'iss', 'aud', and 'uid' values.

      Parameters

      • args: { jwt: string; uidKey?: string }

        The arguments for parsing the JWT.

        • jwt: string

          The JWT to parse.

        • OptionaluidKey?: string

          The key to use for the 'uid' value; defaults to 'sub'.

      Returns { aud: string; iss: string; uidVal: string }

      The 'iss', 'aud', and 'uid' values from the JWT.