https://supertokens.com/ logo
Title
t

thio

01/25/2023, 8:14 AM
hi, is there any example to use super tokens with hasura as main endpoint for auth ?
r

rp

01/25/2023, 8:15 AM
Hey. We don’t have such an example.
Something like this would only be possible if hasura allows you to run serverless functions
What’s the need for this though?
t

thio

01/25/2023, 8:17 AM
ah i see, i just saw a video on hasura channel about super tokens, it just interesting if we have hasura as main endpoint. so everything is behind hasura graphql.
r

rp

01/25/2023, 8:17 AM
I see
This depends on hasura unfortunately.
t

thio

01/25/2023, 8:19 AM
okay, no problem. another question is, is there any sveltekit example ? i am planning to use python FastAPI as backend, and sveltekit as frontend, should i use supertokens-web-js for the frontend ?
or could we use the react auth for the login only for faster login UI development, and redirect to sveltekit frontend and fetch the callback
r

rp

01/25/2023, 8:22 AM
You could use the react pre built ui on a /auth route on the frontend
And you could also make it so that react is only bundled on that route.
See our angular / vue examples. Maybe similar steps apply to svelte
t

thio

01/25/2023, 8:27 AM
got it, will check it, thanks!