serverless-jwt
serverless-jwt copied to clipboard
Mapping of Properties to Netlify Nomenclature
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.
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
becomesclientContext
-
claims
becomesuser