rp
04/06/2022, 1:15 PMXxX_MLG Noob_XxX
04/06/2022, 1:18 PMTheSwordBreaker
04/07/2022, 6:26 AMTheSwordBreaker
04/07/2022, 6:27 AMTheSwordBreaker
04/07/2022, 6:27 AMTheSwordBreaker
04/07/2022, 6:29 AMrp
04/07/2022, 7:09 AMassafushy
04/09/2022, 8:17 PMrp
04/10/2022, 3:19 AMNightMovesπ€
04/17/2022, 8:58 PMNightMovesπ€
04/17/2022, 9:01 PMhttps://www.youtube.com/watch?v=l_hRs1KY9mI&t=218sβΎ
NightMovesπ€
04/17/2022, 9:02 PMNightMovesπ€
04/17/2022, 9:07 PMrp
04/18/2022, 2:58 AMXxX_MLG Noob_XxX
05/06/2022, 5:26 PMsupertokens-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
05/06/2022, 5:27 PMsupertokens-ssr
π€rp
05/07/2022, 5:06 AMif (typeof window !== "undefined") {
supertokens.init({...})
}
CG.VOLS
05/08/2022, 1:24 PMrp
05/08/2022, 1:35 PMXxX_MLG Noob_XxX
05/09/2022, 1:31 PMCG.VOLS
05/10/2022, 4:56 PMCG.VOLS
05/18/2022, 11:12 AMXxX_MLG Noob_XxX
06/13/2022, 4:28 PMRemix
with `SuperTokens`:
https://github.com/ITenthusiasm/remix-supertokens
Does SuperTokens ever review this kind of stuff? If it's written correctly, it should enable people to get auth up and running without end users needing to enable JavaScript. It might also give new ideas for the default forms exported by SuperTokens.
If it's written incorrectly or I'm missing any use cases / error cases (specifically within login/signup/resetting passwords), I can try to fix those. π
The 2 things I hope to add in the future are specified in the TODO list. (They are JS-enhanced forms and a local db example... if I find time.)sharma
06/15/2022, 10:50 AMrp
06/15/2022, 11:54 AMsharma
06/15/2022, 3:16 PMrp
06/15/2022, 3:23 PMrp
06/15/2022, 3:28 PMhaydn
07/13/2022, 4:57 AMinvitePerson
, acceptInvite
, resetPassword
etc). Also, we've got our own email service (email templates as well as sending method), so just looking to generate tokens that we can use to construct our own links.rp
07/13/2022, 5:38 AMrp
07/13/2022, 5:38 AM