Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Tools glue
ng-ebi-authorization
Commits
e3f3de3a
Commit
e3f3de3a
authored
Jun 18, 2018
by
Eduardo Sanz García
Browse files
docs: fixed imports in the examples in the README
parent
df63a192
Pipeline
#2731
passed with stages
in 3 minutes and 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
README.md
README.md
+9
-3
No files found.
README.md
View file @
e3f3de3a
...
...
@@ -47,6 +47,9 @@ import {
import
{
AuthModule
}
from
'
angular-aap-auth
'
;
import
{
JwtModule
}
from
'
@auth0/angular-jwt
'
;
@
NgModule
({
declarations
:
[
...
...
@@ -55,9 +58,9 @@ import {
imports
:
[
BrowserModule
,
AuthModule
.
forRoot
(),
JwtModul
d
.
forRoot
({
JwtModul
e
.
forRoot
({
config
:
{
tokenGetter
:
()
=>
localStorage
.
getItem
(
'
id_token
'
)
tokenGetter
:
()
=>
localStorage
.
getItem
(
'
id_token
'
)
}
})
],
...
...
@@ -195,6 +198,9 @@ import {
import
{
AuthModule
}
from
'
angular-aap-auth
'
;
import
{
JwtModule
}
from
'
@auth0/angular-jwt
'
;
export
function
getToken
():
string
{
return
localStorage
.
getItem
(
'
jwt_token
'
)
||
''
;
...
...
@@ -219,7 +225,7 @@ export function removeToken(): void {
tokenUpdater
:
updateToken
,
tokenRemover
:
removeToken
// Optional
}),
JwtModul
d
.
forRoot
({
JwtModul
e
.
forRoot
({
config
:
{
tokenGetter
:
getToken
,
}
...
...
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