-
Notifications
You must be signed in to change notification settings - Fork 53
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
logged in save user data #145
Comments
Right now We are following the react-admin interface. At least we are putting on localstorage permissions and token. But if you want to access to all other props in user you can always do a GET to that service. |
@lalote Can you explain why this functionality should be included in ra-data-feathers, and not implemented elsewhere (e.g. in your application)? If you need the user data to be saved immediately on login without retrieving it separately as @josx has suggested, I think the correct approach would be to listen for the
FeathersJS .on(eventname, listener) documentation for reference. I just don't see that the requested functionality should be the responsibility of ra-data-feathers. This library is just a connector between feathersClient and React Admin. If you can explain why I'm wrong here, I'd be happy to write a pull request for you (as long as @josx is happy with it). Otherwise I'd suggest this issue should be closed as out of scope. |
Lets see what @lalote has to say before closing it. |
Hello, in feathersjs when you logged in, you get the accessToken and user data (at least default configuration) . The accessToken is saved at localStorage, so, there are any posibility of add a authClient.options for save the user data in localStorage too?
The text was updated successfully, but these errors were encountered: