Service for tokens managing.

interface ITokenService {
    getToken(
        type: string,
        request: TokenRequest,
    ): Promise<IAccessTokenResult>;
    revokeToken(tokenHash: string): Promise<ValidationResult>;
}

Implemented by

Methods

  • Revokes access token by its tokenHash.

    Parameters

    • tokenHash: string

      The hash of the access token to be revoked.

    Returns Promise<ValidationResult>

MMNEPVFCICPMFPCPTTAAATR