Hello, quick question, is there anyway to get a jw...
# support-questions-legacy
b
Hello, quick question, is there anyway to get a jwt PEM string without calling the jwks.json? we are having a chicken egg problem in that the api server relies on hasura and hasura relies on the jwks.json url. alternatively, if I generate the PEM string on my dev machine, would it work on the prod machine?
r
hey @birdinadream you can call the jwks endpoint and convert the output to a pem string
b
so nextjs needs access to Hasura during the build stage, and hasura needs access to the nextjs - supertokens api auth endpoint. The best way out is to provide the PEM string to hasura directly without ever having to start the nextjs service. But it seems we need to find a workaround
r
You can get the public keys from the core directly
And use that in hasura
b
I was browsing the source code for this actually. Is this a 'documented' feature?
r
see the link above i sent
2 Views