Skip to content

@sourceloop/authentication-service / Exports / BearerTokenVerifyProvider

Class: BearerTokenVerifyProvider

Implements

  • Provider<VerifyFunction.BearerFn>

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BearerTokenVerifyProvider(revokedTokenRepository, logger, jwtVerifier)

Parameters

Name Type
revokedTokenRepository RevokedTokenRepository
logger ILogger
jwtVerifier JWTVerifierFn<AuthUser>

Defined in

services/authentication-service/src/modules/auth/providers/bearer-token-verify.provider.ts:19

Properties

jwtVerifier

jwtVerifier: JWTVerifierFn<AuthUser>

Defined in

services/authentication-service/src/modules/auth/providers/bearer-token-verify.provider.ts:24


logger

logger: ILogger

Defined in

services/authentication-service/src/modules/auth/providers/bearer-token-verify.provider.ts:22


revokedTokenRepository

revokedTokenRepository: RevokedTokenRepository

Defined in

services/authentication-service/src/modules/auth/providers/bearer-token-verify.provider.ts:21

Methods

value

value(): BearerFn<IAuthUser>

Returns

BearerFn<IAuthUser>

Implementation of

Provider.value

Defined in

services/authentication-service/src/modules/auth/providers/bearer-token-verify.provider.ts:27