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

🤖 - How to configure AUTH0_CLIENT_CLAIMS #654

Open
ccbikai opened this issue Nov 17, 2024 · 1 comment
Open

🤖 - How to configure AUTH0_CLIENT_CLAIMS #654

ccbikai opened this issue Nov 17, 2024 · 1 comment

Comments

@ccbikai
Copy link

ccbikai commented Nov 17, 2024

Description

I have deployed codeimage locally, and I can get the req.user information.

Cursor 2024-11-17 14 11 07

However, there is no email field inside, and AUTH0_CLIENT_CLAIMS must be configured as a URL

Cursor 2024-11-17 14 11 44

I would like to ask how to configure AUTH0_CLIENT_CLAIMS in order to obtain the Email (the local localstorage user information contains Email)

@riccardoperra
Copy link
Owner

riccardoperra commented Nov 17, 2024

Hi, in order to run codeimage locally with authentication enabled you need to provide your own auth0 configuration, which could be a little tricky.

The env var you mentioned is linked in the prod environment with the url of the website. There is a Auth0 automated flow that augment the jwt token adding a email claim.

Couldn't you just mock the authentication? The pnpm prepare:env may help you

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

No branches or pull requests

2 participants