Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-client
Commits
0fd4ad19
Commit
0fd4ad19
authored
Nov 19, 2020
by
Tifenn Guillas
Browse files
WIP: Fix tests
parent
8fde9eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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