🥐
TTCTheo's Typesafe Cult
•Created by 🥐 on 4/27/2023 in #questions
Difference between a = useRef(b); and a = useRef(); a.current = b;
that makes so much more sense when you put it like that, thank you
6 replies
TTCTheo's Typesafe Cult
•Created by Monster on 2/28/2023 in #questions
User authentication in Astro?
couldn't find an adapter for planetscale so I sort of hacked something together using event and callback functions
5 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/10/2023 in #questions
Get a users id (snowflake) when signing in 0Auth
if memory serves me right
user.id
will return the id that's been set in whatever DB prisma is linked to while what you want would be returned by profile.id
4 replies
TTCTheo's Typesafe Cult
•Created by Monster on 2/28/2023 in #questions
User authentication in Astro?
I joined the discord in search of an answer to a very similar question and for me this package ended up being the solution https://www.npmjs.com/package/auth-astro it brings what Astro-Auth supposedly brought but has been updated much more recently (~ a month ago) and worked for me, hope this helps you or whoever wanders here for the same reason <:ChillBar_cheer:866556305640914945>
5 replies