Class: TokenValidatorService
Class: TokenValidatorService
Defined in: auth-server-nest/src/services/token-validator.service.ts:33
NestJS adapter around the framework-agnostic TokenValidator from
@vendidit/auth-server-ts. Translates core TokenValidationError
codes to UnauthorizedException so existing controllers + global filters
keep working unchanged.
The actual HS256 verification + revocation logic lives in the core class — this file is purely the framework bridge.
Constructors
Constructor
new TokenValidatorService(
opts,redis):TokenValidatorService
Defined in: auth-server-nest/src/services/token-validator.service.ts:37
Parameters
opts
redis
AuthClientRedis | null
Returns
TokenValidatorService
Methods
validate()
validate(
token):Promise<AuthPrincipal>
Defined in: auth-server-nest/src/services/token-validator.service.ts:61
Parameters
token
string
Returns
Promise<AuthPrincipal>