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

Mapping of Properties to Netlify Nomenclature #1

Open
jamesqquick opened this issue Aug 12, 2020 · 0 comments
Open

Mapping of Properties to Netlify Nomenclature #1

jamesqquick opened this issue Aug 12, 2020 · 0 comments

Comments

@jamesqquick
Copy link

The nomenclature in referencing access tokens in Netlify functions using Netlify identity is a bit different.

Netlify attaches a clientContext property to the Netlify Function context instead of an identityContext. Additionally, Netlify attaches a user property to the clientContext vs a claims object.

image

Would it be worth updating the properties in the @serverless-jwt/netlify package to match? This way validation will occur in the same way regardless of where the tokens come from.

In summary...

  • identityContext becomes clientContext
  • claims becomes user
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

1 participant