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
rp_st
03/07/2023, 11:56 AM
hey @birdinadream you can call the jwks endpoint and convert the output to a pem string
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
rp_st
03/07/2023, 12:49 PM
You can get the public keys from the core directly
rp_st
03/07/2023, 12:49 PM
And use that in hasura
b
birdinadream
03/07/2023, 12:50 PM
I was browsing the source code for this actually.
Is this a 'documented' feature?