-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save token with isAuthenticated in AUTH_KEY #501
Comments
In effects you can inject store and retrieve store data as a part of effect stream with |
Use the props method by updating the following files. auth.actions.ts auth.models.ts auth.reducer.ts
auth.effects.ts Note: you don't have to save tokens to local storage. You can retrieve them from the store by setting up a selector. eg: auth.selector.ts After importing the new selector in core.module.ts, you can retrieve the token like so |
@reevesba thanks for sharing! |
Hi,
I wanted to save token with AUTH_KEY
this.localStorageService.setItem(AUTH_KEY, { isAuthenticated: true, token: authLogin })
in auth.effect.ts how to pass token
The text was updated successfully, but these errors were encountered: