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