botants
TTCTheo's Typesafe Cult
•Created by botants on 4/25/2023 in #questions
Using passport-steam and supabase auth in nextjs.
My idea is to let people sign in with discord using supabase. After a successful log in they have a option to "link" their discord account with steam. After the linking process their steam-id should be inserted into the supabase profiles table. Supabase does not have steam as a official authentication provider so i'm using passport-steam for the steam part.
The passport-steam strategy looks like this:
const SteamStrategy = passportSteam.Strategy;
My guess would be that i should use this in the passport.use:
But i have no idea how could i get the logged in users discord id.
5 replies