-
Notifications
You must be signed in to change notification settings - Fork 2
auth.Class.LocalAuthService
@sclable/nestjs-libs / auth / LocalAuthService
Defined in: packages/auth/src/services/local-auth.service.ts:9
-
AuthService<UserType>
UserType extends ApplicationUserContract
new LocalAuthService<
UserType>(userService,jwtService):LocalAuthService<UserType>
Defined in: packages/auth/src/services/local-auth.service.ts:12
UserServiceContract<UserType>
JwtService
LocalAuthService<UserType>
AuthService<UserType>.constructor
protectedreadonlyjwtService:JwtService
Defined in: packages/auth/src/services/local-auth.service.ts:14
AuthService.jwtService
addToBlacklist(
jwtPayload):void
Defined in: packages/auth/src/services/auth.service.ts:38
JwtPayload
void
AuthService.addToBlacklist
decodeAuthorizationHeaderToken(
headerToken):JwtPayload
Defined in: packages/auth/src/services/auth.service.ts:21
string
JwtPayload
AuthService.decodeAuthorizationHeaderToken
getAccessToken(
user):Promise<string>
Defined in: packages/auth/src/services/local-auth.service.ts:23
Promise<string>
getApplicationUser(
token):Promise<UserType|null>
Defined in: packages/auth/src/services/local-auth.service.ts:35
JwtPayload
Promise<UserType | null>
AuthService.getApplicationUser
isBlackListed(
jwtPayload):boolean
Defined in: packages/auth/src/services/auth.service.ts:34
JwtPayload
boolean
AuthService.isBlackListed
isValid(
jwtPayload):boolean
Defined in: packages/auth/src/services/auth.service.ts:25
JwtPayload
boolean
AuthService.isValid
validateUser(
username,password):Promise<UserType|null>
Defined in: packages/auth/src/services/local-auth.service.ts:19
string
string
Promise<UserType | null>
protectedstaticuserDataChanged(user,token):boolean
Defined in: packages/auth/src/services/auth.service.ts:12
JwtPayload
boolean
AuthService.userDataChanged