Hey everyone! How do I access `/jwt/jwks`. I deployed Supertokens as AWS Lambda. This url for signin...
j
Hey everyone! How do I access
/jwt/jwks
. I deployed Supertokens as AWS Lambda. This url for signing up works great: https://xx1g573a5h.execute-api.us-east-1.amazonaws.com/prod/auth/signup But how can I reach the
/jwks
endpoint? Calling this https://xx1g573a5h.execute-api.us-east-1.amazonaws.com/prod/auth/jwt/jwks returns:
Copy code
{
  "error": "The middleware couldn't serve the API path /auth/jwt/jwks, method: get. If this is an unexpected behaviour, please create an issue here: https://github.com/supertokens/supertokens-node/issues"
}
FYI I have deleted that API gateway in the mean time. Just in case anybody is trying out exactly that url
r
Have you enabled JWT in the session recipe?
Also see if you are querying the right path
Supertokens.com/docs/fdi
I think the jwks path ends in a .json
j
Thank you! That was it. Btw, I was looking at this documentation: https://app.swaggerhub.com/apis/supertokens/CDI/2.17.0#/ Thank you for pointing me to the right documentation
r
Ah right. The one you were looking at is the APIs exposed by the core. Not the backend SDK