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

app_data is not returned as part of claims #461

Open
richmeij opened this issue Aug 27, 2024 · 1 comment
Open

app_data is not returned as part of claims #461

richmeij opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@richmeij
Copy link

Version: 1.4.4

Describe the bug

the app_data user field is not returned as part of the claims in the access_token

Steps To Reproduce

const { data, errors } = await authorizer.validateJWTToken({ token, token_type: 'access_token' })
app_data is not part of data.claims

Expected behavior

In the above example I would expect data.claims.app_data to contain the app_data from the database.

Desktop (please complete the following information):

  • OS: macOS 14.6.1
  • platform: Node 20
@richmeij richmeij added the bug Something isn't working label Aug 27, 2024
@richmeij
Copy link
Author

richmeij commented Sep 5, 2024

Some context on this issue: We rely on data in the app_data field to authorize users. We can expose app_data through the custom acces token function, but we cannot configure this in PR environments or E2E environments (i.e. environments that are automatically created and seeded). So maybe adding an ENV variable that exposes app_data to the user data would be an option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant