Cotal TypeScript packages
    Preparing search index...

    Function verifyIdpToken

    • Verify an external IdP JWT against the pinned config and return its sub AND exp. Same pinning posture as validateUserToken, minus the Cotal claim shape (an IdP token has no ver/act; its lifetime is the IdP's session policy — but it must expire and must not be post-dated). The exp is returned so exchange can CAP the minted Cotal bearer to the upstream proof's remaining life. A token carrying a purpose claim is refused: a purpose-bound proof is accepted only by the one exchange its purpose names, never as a general human proof (#4189).

      Parameters

      Returns Promise<VerifiedIdpToken>