Function verifyProfileToken

  • Verifies a profile token

    Parameters

    • token: string

      the token to be verified

    • publicKeyOrAddress: string

      the public key or address of the keypair that is thought to have signed the token

    Returns TokenInterface

    • the verified, decoded profile token

    Throws

    • throws an error if token verification fails

Generated using TypeDoc