Skip to content
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

userProfile method is protected even though it's an easy way to access user info #205

Open
EdenTurgeman opened this issue Nov 27, 2022 · 1 comment

Comments

@EdenTurgeman
Copy link

Describe the bug

I would love to be able to access the userProfile method in my remix app to identify the currently logged in user.
Auth0-js has this functionality built in the client and i think we should expose it here unless i'm missing something

Your Example Website or App

https://stackblitz.com/none

Steps to Reproduce the Bug or Issue

image

Expected behavior

I would love to have an easy way to get the use info from the auth0 strategy/authenticator

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

@EdenTurgeman EdenTurgeman changed the title userProfile method is protected when it's an easy way to access user info userProfile method is protected even though it's an easy way to access user info Nov 27, 2022
@sergiodxa
Copy link
Owner

You get that information when the verify callback you pass to the strategy is called

There you can do whatever you want with the data, including returning it so it’s going to be accessible when calling isAuthenticated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants