-
Notifications
You must be signed in to change notification settings - Fork 2
auth.LocalAuthService
auth.LocalAuthService
| Name | Type |
|---|---|
UserType |
extends ApplicationUserContract
|
-
AuthService<UserType>↳
LocalAuthService
- addToBlacklist
- decodeAuthorizationHeaderToken
- getAccessToken
- getApplicationUser
- isBlackListed
- isValid
- validateUser
- userDataChanged
• new LocalAuthService<UserType>(userService, jwtService)
| Name | Type |
|---|---|
UserType |
extends ApplicationUserContract
|
| Name | Type |
|---|---|
userService |
UserServiceContract<UserType> |
jwtService |
JwtService |
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
• Private Readonly userService: UserServiceContract<UserType>
packages/auth/src/services/local-auth.service.ts:13
▸ addToBlacklist(jwtPayload): void
| Name | Type |
|---|---|
jwtPayload |
JwtPayload |
void
AuthService.addToBlacklist
packages/auth/src/services/auth.service.ts:38
▸ decodeAuthorizationHeaderToken(headerToken): JwtPayload
| Name | Type |
|---|---|
headerToken |
string |
JwtPayload
AuthService.decodeAuthorizationHeaderToken
packages/auth/src/services/auth.service.ts:21
▸ getAccessToken(user): Promise<string>
| Name | Type |
|---|---|
user |
ApplicationUserContract |
Promise<string>
packages/auth/src/services/local-auth.service.ts:23
▸ getApplicationUser(token): Promise<null | UserType>
| Name | Type |
|---|---|
token |
JwtPayload |
Promise<null | UserType>
AuthService.getApplicationUser
packages/auth/src/services/local-auth.service.ts:35
▸ isBlackListed(jwtPayload): boolean
| Name | Type |
|---|---|
jwtPayload |
JwtPayload |
boolean
AuthService.isBlackListed
packages/auth/src/services/auth.service.ts:34
▸ isValid(jwtPayload): boolean
| Name | Type |
|---|---|
jwtPayload |
JwtPayload |
boolean
AuthService.isValid
packages/auth/src/services/auth.service.ts:25
▸ validateUser(username, password): Promise<null | UserType>
| Name | Type |
|---|---|
username |
string |
password |
string |
Promise<null | UserType>
packages/auth/src/services/local-auth.service.ts:19
▸ Static Protected userDataChanged(user, token): boolean
| Name | Type |
|---|---|
user |
ApplicationUserContract |
token |
JwtPayload |
boolean
AuthService.userDataChanged