Skip to content

Commit 712d73d

Browse files
authored
Merge pull request #293 from volpejoaquin/master
Fixed not refreshing atCurrentAuthData problem.
2 parents 819e697 + 6b480b3 commit 712d73d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/angular2-token.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ export class Angular2TokenService implements CanActivate {
368368
let baseRequestOptions: RequestOptions;
369369
let baseHeaders: { [key:string]: string; } = this.atOptions.globalOptions.headers;
370370

371+
// Get auth data from local storage
372+
this.getAuthDataFromStorage();
373+
371374
// Merge auth headers to request if set
372375
if (this.atCurrentAuthData != null) {
373376
(<any>Object).assign(baseHeaders, {

0 commit comments

Comments
 (0)