Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
anis
anis-client
Commits
0fd4ad19
Commit
0fd4ad19
authored
Nov 19, 2020
by
Tifenn Guillas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Fix tests
parent
8fde9eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/app/auth/token-interceptor.ts
src/app/auth/token-interceptor.ts
+7
-0
No files found.
src/app/auth/token-interceptor.ts
View file @
0fd4ad19
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
HttpRequest
,
HttpHandler
,
HttpEvent
,
HttpInterceptor
}
from
'
@angular/common/http
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
AuthService
}
from
'
./auth.service
'
;
import
{
environment
}
from
'
../../environments/environment
'
;
@
Injectable
()
/**
* @class
* @classdesc Token interceptor.
*
* @implements HttpInterceptor
*/
export
class
TokenInterceptor
implements
HttpInterceptor
{
constructor
(
private
authService
:
AuthService
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment