@silencelaboratories/walletprovider-sdk
    Preparing search index...

    Interface IJWTIssuer

    Interface to implement communication between this library, JWT Issuance service.

    interface IJWTIssuer {
        issueToken(challenge: string): Promise<string>;
    }
    Index

    Methods

    Methods

    • The method required for the JWT module to be implemented.

      Parameters

      • challenge: string

        the challenge computed from the request, that uniquely binds the token to the request that's currently processed.

      Returns Promise<string>

      Valid and signed JWT: Three Base64URL encoded strings, joined together by periods. Follows the structure: header.payload.signature. The claim challenge should contain the parameter challenge.

      Throws an error if JWT issuance failed.