TESSA Web API
    Preparing search index...

    Interface ITokenService

    Service for tokens managing.

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

    Implemented by

    Index

    Methods

    • Revokes access token by its tokenHash.

      Parameters

      • tokenHash: string

        The hash of the access token to be revoked.

      Returns Promise<ValidationResult>