I have a working login inside my fronendpart of my NextJs application. But I made a service user, and want to insert data into a hasura instance with a backend api route. This one is triggered by a cronjob hasura to nextjs API service... In the service, I need to first fetch a valid token from supertokes auth server. Then use it in a apolloclient to mutate data back into hasura.
duc2920
01/30/2023, 12:33 PM
But when i login with the fetch / insomina post to /auth/signin. None of the tokens that are returned are valdid tokens when i check them in jwt.io or hasura Authorization header in console.
r
rp_st
01/30/2023, 12:47 PM
right. Checkout our docs for how to use our sessions with JWT
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).