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
currently the jwt middleware requires a static secret value, however in my use case (see below) it's not a static secret instead it is retrieved from an JWKS. Therefore it would be nice if the jwt middleware also support an async function(payload: any) : string as secret parameter.
Use Case:
I'm working on a server endpoint that is called by GitHub actions to authenticate I'm using the Github Actions OIDC tokens.
Currently I'm using my own middleware by using fast-jwt with get-jwks like this
What is the feature you are proposing?
currently the
jwt
middleware requires a static secret value, however in my use case (see below) it's not a static secret instead it is retrieved from an JWKS. Therefore it would be nice if thejwt
middleware also support anasync function(payload: any) : string
as secret parameter.Use Case:
I'm working on a server endpoint that is called by GitHub actions to authenticate I'm using the Github Actions OIDC tokens.
Currently I'm using my own middleware by using
fast-jwt
withget-jwks
like thishowever it would be nice if I can switch to an official middleware.
The text was updated successfully, but these errors were encountered: