You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, FoalTS JWT hooks decode JWT secrets using UTF-8. We should have an option to decode these secrets using base64 since foal createsecret generates base64-encoded keys.
Solution
Add a new option in the config to do that.
settings:
jwt:
secretEncoding: 'base64'
Implementation
Just add a Buffer.from(secret, 'base64') and a Config.get in the hook.
Issue
By default, FoalTS JWT hooks decode JWT secrets using UTF-8. We should have an option to decode these secrets using base64 since
foal createsecret
generates base64-encoded keys.Solution
Add a new option in the config to do that.
Implementation
Just add a
Buffer.from(secret, 'base64')
and aConfig.get
in the hook.External link
auth0/node-jsonwebtoken#208 (comment)
The text was updated successfully, but these errors were encountered: