Skip to content

Commit 563cd68

Browse files
committed
tweaked auth service
added return user from login method so it gets passed through to login component
1 parent 1945ab2 commit 563cd68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/_services/authentication.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class AuthenticationService {
1616
// store user details and jwt token in local storage to keep user logged in between page refreshes
1717
localStorage.setItem('currentUser', JSON.stringify(user));
1818
}
19+
20+
return user;
1921
});
2022
}
2123

0 commit comments

Comments
 (0)