Gower - Has anyone got a guide or video on conn...
Has anyone got a guide or video on connecting up user authentication via buildship?
Standard login stuff enabling paid users to get to their content.
I want to use supabase auth.
It’s a react app front end.
(open to alternative approaches, calling supabase auth direct from the app?? Anyone has any experience they’re able to share)
1 Reply
I'm doing it, there is a supabase Auth node, and the documentation is there. Basically, in your api calls that are for paid users only you will check if his token is valid. If it is, the flow will follow.
Login is basically to get the token (react to supabase can deal with that), then your react app stores the bearer token for the user session, and anytime it wants to use an api, you check if the token is valid.
Makes sense?