-
Notifications
You must be signed in to change notification settings - Fork 2
auth.Class.ExternalAuthService
@sclable/nestjs-libs / auth / ExternalAuthService
-
AuthService<UserType>
• UserType extends ApplicationUserContract
new ExternalAuthService<
UserType>(authProviderService,userService,jwtService):ExternalAuthService<UserType>
• authProviderService: AuthProviderServiceContract
• userService: UserServiceContract<UserType>
• jwtService: JwtService
ExternalAuthService<UserType>
AuthService<UserType>.constructor
packages/auth/src/services/external-auth.service.ts:21
protectedreadonlyjwtService:JwtService
AuthService.jwtService
packages/auth/src/services/external-auth.service.ts:25
addToBlacklist(
jwtPayload):void
• jwtPayload: JwtPayload
void
AuthService.addToBlacklist
packages/auth/src/services/auth.service.ts:38
createAuthUser(
users):Promise<number>
• users: CreateAuthProviderUser[]
Promise<number>
packages/auth/src/services/external-auth.service.ts:64
decodeAuthorizationHeaderToken(
headerToken):JwtPayload
• headerToken: string
JwtPayload
AuthService.decodeAuthorizationHeaderToken
packages/auth/src/services/auth.service.ts:21
getApplicationUser(
token,createIfNotExists,updateIfChanged):Promise<null|UserType>
• token: JwtPayload
• createIfNotExists: boolean = true
• updateIfChanged: boolean = true
Promise<null | UserType>
AuthService.getApplicationUser
packages/auth/src/services/external-auth.service.ts:30
isBlackListed(
jwtPayload):boolean
• jwtPayload: JwtPayload
boolean
AuthService.isBlackListed
packages/auth/src/services/auth.service.ts:34
isValid(
jwtPayload):boolean
• jwtPayload: JwtPayload
boolean
AuthService.isValid
packages/auth/src/services/auth.service.ts:25
protectedstaticuserDataChanged(user,token):boolean
• user: ApplicationUserContract
• token: JwtPayload
boolean
AuthService.userDataChanged