authorizer icon indicating copy to clipboard operation
authorizer copied to clipboard

app_data is not returned as part of claims

Open richmeij opened this issue 1 year ago • 1 comments

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 avatar Aug 27 '24 12:08 richmeij

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?

richmeij avatar Sep 05 '24 11:09 richmeij