Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bezkoder/angular-12-jwt-refresh-token
/ functions
Functions
46 in github.com/bezkoder/angular-12-jwt-refresh-token
⨍
Functions
46
◇
Types & classes
32
↓ 5 callers
Method
getUser
()
src/app/_services/token-storage.service.ts:45
↓ 3 callers
Method
addTokenHeader
(request: HttpRequest<any>, token: string)
src/app/_helpers/auth.interceptor.ts:70
↓ 3 callers
Method
emit
(event: EventData)
src/app/_shared/event-bus.service.ts:14
↓ 3 callers
Method
getToken
()
src/app/_services/token-storage.service.ts:27
↓ 2 callers
Method
saveToken
(token: string)
src/app/_services/token-storage.service.ts:17
↓ 2 callers
Method
saveUser
(user: any)
src/app/_services/token-storage.service.ts:40
↓ 2 callers
Method
signOut
()
src/app/_services/token-storage.service.ts:13
↓ 1 callers
Method
getAdminBoard
()
src/app/_services/user.service.ts:25
↓ 1 callers
Method
getModeratorBoard
()
src/app/_services/user.service.ts:21
↓ 1 callers
Method
getPublicContent
()
src/app/_services/user.service.ts:13
↓ 1 callers
Method
getRefreshToken
()
src/app/_services/token-storage.service.ts:36
↓ 1 callers
Method
getUserBoard
()
src/app/_services/user.service.ts:17
↓ 1 callers
Method
handle401Error
(request: HttpRequest<any>, next: HttpHandler)
src/app/_helpers/auth.interceptor.ts:37
↓ 1 callers
Method
login
(username: string, password: string)
src/app/_services/auth.service.ts:17
↓ 1 callers
Method
logout
()
src/app/app.component.ts:45
↓ 1 callers
Method
on
(eventName: string, action: any)
src/app/_shared/event-bus.service.ts:18
↓ 1 callers
Method
refreshToken
(token: string)
src/app/_services/auth.service.ts:32
↓ 1 callers
Method
register
(username: string, email: string, password: string)
src/app/_services/auth.service.ts:24
↓ 1 callers
Method
reloadPage
()
src/app/login/login.component.ts:50
↓ 1 callers
Method
saveRefreshToken
(token: string)
src/app/_services/token-storage.service.ts:31
Method
constructor
(private tokenStorageService: TokenStorageService, private eventBusService: EventBusService)
src/app/app.component.ts:20
Method
constructor
(private userService: UserService, private eventBusService: EventBusService)
src/app/board-moderator/board-moderator.component.ts:14
Method
constructor
(private authService: AuthService)
src/app/register/register.component.ts:19
Method
constructor
(private token: TokenStorageService)
src/app/profile/profile.component.ts:12
Method
constructor
(private userService: UserService)
src/app/home/home.component.ts:12
Method
constructor
(private authService: AuthService, private tokenStorage: TokenStorageService)
src/app/login/login.component.ts:20
Method
constructor
(private tokenService: TokenStorageService, private authService: AuthService)
src/app/_helpers/auth.interceptor.ts:19
Method
constructor
()
src/app/_shared/event-bus.service.ts:12
Method
constructor
(name: string, value: any)
src/app/_shared/event.class.ts:5
Method
constructor
(private userService: UserService, private eventBusService: EventBusService)
src/app/board-admin/board-admin.component.ts:14
Method
constructor
(private userService: UserService, private eventBusService: EventBusService)
src/app/board-user/board-user.component.ts:14
Method
constructor
(private http: HttpClient)
src/app/_services/auth.service.ts:15
Method
constructor
()
src/app/_services/token-storage.service.ts:11
Method
constructor
(private http: HttpClient)
src/app/_services/user.service.ts:11
Method
intercept
(req: HttpRequest<any>, next: HttpHandler)
src/app/_helpers/auth.interceptor.ts:21
Method
ngOnDestroy
()
src/app/app.component.ts:40
Method
ngOnInit
()
src/app/app.component.ts:22
Method
ngOnInit
()
src/app/board-moderator/board-moderator.component.ts:16
Method
ngOnInit
()
src/app/register/register.component.ts:21
Method
ngOnInit
()
src/app/profile/profile.component.ts:14
Method
ngOnInit
()
src/app/home/home.component.ts:14
Method
ngOnInit
()
src/app/login/login.component.ts:22
Method
ngOnInit
()
src/app/board-admin/board-admin.component.ts:16
Method
ngOnInit
()
src/app/board-user/board-user.component.ts:16
Method
onSubmit
()
src/app/register/register.component.ts:24
Method
onSubmit
()
src/app/login/login.component.ts:29