https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
general
  • c

    constantinos

    11/01/2021, 3:34 PM
    Oh great. About my original question, will I need to implement a reverse proxy as described here? https://github.com/supertokens/supertokens-core/issues/280
  • c

    constantinos

    11/01/2021, 3:34 PM
    Is this the relevant docs with Hasura? https://hasura.io/docs/latest/graphql/core/deployment/enable-https.html
  • c

    constantinos

    11/01/2021, 3:35 PM
    Let me know if there's docs on your site that explain how reverse proxy's work. I dont understand them
  • r

    rp

    11/01/2021, 3:37 PM
    You would need a reverse proxy. Yes.
  • r

    rp

    11/01/2021, 3:37 PM
    Do you have any other API backend other than hasura?
  • c

    constantinos

    11/01/2021, 3:38 PM
    Only some serverless functions with Vercel
  • r

    rp

    11/01/2021, 3:41 PM
    Give me sometime. Iโ€™ll reply in a bit ๐Ÿ™‚
  • r

    rp

    11/01/2021, 5:50 PM
    @User , you would need to host your own backend that integrates with SuperTokens' backend SDK. This backend could be reachable via a sub domain of your frontend. It would expose all the APIs that are provided by supertokens, which your frontend would use. Then there are three methods for auth with Hasura 1) After a user is logged in, you could extract a JWT from the session and pass that to Hasura for auth. Extracting a JWT is still a feature that's work in progress.. It should be avaialbel in 1-2 weeks from now. 2) You could proxy requests to Hasura via your backend API layer which would use our
    verifySession
    middleware. 3) You could store the user's session ID on the frontend and pass that to Hasura when you query it. Then Hasura can use a custom auth hook to query SuperTokens' core to check if the session ID is valid or not. ---------------------- Out of these, number (2) is the most secure since it doesn't expose any of the session tokens to the frontend (therby preventing token theft via XSS attacks) (1) is the most popular since it's easy to use. ---------------------- Anyhow, you would need to host an API server which would integrate with SuperTokens' backend SDK.
  • d

    Deleted User

    11/02/2021, 3:07 AM
    hjust wanted to say I'm really impressed with super tokens
  • d

    Deleted User

    11/02/2021, 3:07 AM
    my biggest complaint with Auth0 specifically was their damn documentation being terrible if not incomplete if not even worse than that at times
  • r

    rp

    11/02/2021, 4:07 AM
    Thank you @Deleted User ! ๐Ÿ™
  • k

    KitsuneKenshi

    11/04/2021, 3:09 PM
    Hey, it's me again I tried to connect my frontend to the backend now, and i have set apiDomain to 'http://localhost:3000/api/', but it still sends requests to http://localhost:3000/auth/session/refresh is there a way to fix it?
  • r

    rp

    11/04/2021, 3:15 PM
    Hey @KitsuneKenshi the apiDomain should not have the path. Instead, set the apiBasePath to โ€œ/api/authโ€ on the frontend and backend.
  • k

    KitsuneKenshi

    11/04/2021, 3:18 PM
    oh alr
  • k

    KitsuneKenshi

    11/04/2021, 3:19 PM
    didn't notice that in options, my bad
  • r

    rp

    11/04/2021, 3:33 PM
    No worries ๐Ÿ™‚
  • c

    constantinos

    11/04/2021, 3:34 PM
    So I started reading the docs and I noticed I cant change the
    websiteDomain
    in supertokens-website sdk?
  • c

    constantinos

    11/04/2021, 3:34 PM
    https://supertokens.io/docs/session/common-customizations/changing-base-path/website-base-path
  • c

    constantinos

    11/04/2021, 3:35 PM
    Doesnt seem to be available in the reference either https://supertokens.io/docs/website/modules.html
  • r

    rp

    11/04/2021, 3:35 PM
    The supertokens-website SDK doesnโ€™t show any login UI. So there is no need for that value for that SDK
  • t

    thanos-minion

    11/05/2021, 3:30 PM
    Hi guys, Im new here to supertokens
  • r

    rp

    11/05/2021, 3:31 PM
    ๐Ÿ‘‹. Welcome!
  • t

    thanos-minion

    11/05/2021, 3:31 PM
    Could some one help me with integrating with sveltekit (SSR version)
  • t

    thanos-minion

    11/05/2021, 3:31 PM
    Hi rp
  • t

    thanos-minion

    11/05/2021, 3:33 PM
    or any article on next.js, that also works for me
  • r

    rp

    11/05/2021, 3:33 PM
    We have NextJS integration
  • r

    rp

    11/05/2021, 3:34 PM
    What kind of auth do you want?
  • r

    rp

    11/05/2021, 3:34 PM
    For example, email password with social login?
  • r

    rp

    11/05/2021, 3:34 PM
    Or something else?
  • t

    thanos-minion

    11/05/2021, 3:34 PM
    email password (custom one)
Powered by Linen
Title
t

thanos-minion

11/05/2021, 3:34 PM
email password (custom one)
View count: 2