• NightMoves💤

    NightMoves💤

    5 months ago
    I am going through some nodejs samples but I see a lot of express code.

    https://www.youtube.com/watch?v=l_hRs1KY9mI&t=218s

  • NightMoves💤

    NightMoves💤

    5 months ago
    I am not using a framework for backend at the moment. Do I have to use express with lambda in order to use supertokens? 😅
    NightMoves💤
    r
    +1
    15 replies
    Copy to Clipboard
  • NightMoves💤

    NightMoves💤

    5 months ago
    @bhumilsarvaiya Akshay here.
  • r

    rp

    5 months ago
    Aws lambda
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    4 months ago
    Is there a chance that
    supertokens-website
    could be made more functional in nature? I'm starting to see that for SSR frameworks (e.g., Svelte-Kit, Next, Nuxt, Remix),
    SuperTokens.init()
    can get a little difficult because
    window.fetch
    needs to exist. But
    window
    doesn't exist on the backend. It doesn't make sense to call
    SuperTokens.init()
    from within another frontend function that's intended to be used multiple times (because then
    init
    would be called several times when it only needs to be called once). So it has to be used in a more "open" area. But
    SuperTokens.init()
    also can't easily be placed in a location that's too open or the SSR aspect of the framework will error out due to
    window
    being
    undefined
    . If it was more functional, maybe a function could be returned that grabs all the things we need (e.g., modifications to fetch)? I'm not sure how feasible that is. Or perhaps there are workarounds to the problem that I haven't considered. But many of these workarounds seem a bit hackish/unorthodox.
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    4 months ago
    Or maybe a new
    supertokens-ssr
    🤔
  • r

    rp

    4 months ago
    @XxX_MLG Noob_XxX we will consider making it compatible with SSR, but on the server side. However, it will take some time. In the meantime, we ask people to do something like this on the global scope:
    if (typeof window !== "undefined") {
      supertokens.init({...})
    }
  • c

    CG.VOLS

    4 months ago
    is it possible to do a combination (passwordless, email, social) that is not a current recipe?
    c
    r
    +1
    8 replies
    Copy to Clipboard
  • r

    rp

    4 months ago
    Recipe combination
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    4 months ago
    Makes sense. Thanks!