How to implement a Login with Linkedin Auth flow in supabase?

I am using toddle for my front end and Supabase for my database and for my auth flow. I would like to use buildship as my backend and I am looking to implement the login with linkedin flow in via supabase. Things I have tried: 1. I dont see a supbase auth node in the workflow builder 2. I tried doing a simple http call to the url https://<xx>.supabase.co/auth/v1/authorize?provider=linkedin_oidc&redirect_to=https://mysite.com/rediect Any recommendations on how to build a workflow for user authentication on Buildship?
2 Replies
AI Support
AI Support2w ago
AI Support Bot Information
<@430452502861709332> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2w ago
AI Response
I could not find a specific node for Supabase Auth in the BuildShip node library. However, you can implement user authentication with LinkedIn via Supabase by using HTTP calls in BuildShip in a workflow. Here's a basic approach to get you started: 1. HTTP Request Node: Use the HTTP node to make requests to the Supabase Auth API. Since you mentioned using a URL for authorization, ensure you include all necessary parameters and headers for the LinkedIn OIDC flow. 2. Handle Redirects: Use a HTTP Redirect Node to handle the redirection back from LinkedIn. 3. Token Exchange: After redirecting, you'll typically need to exchange the authorization code you received for an access token. You can use another HTTP Request to handle this exchange with Supabase. 4. Error Handling: Ensure you have error handling nodes to manage request failures or bad responses from the auth API. 5. Supabase Integration: Leverage any other Supabase nodes for database operations such as storing user details after authentication. You may need to manually parse any JSON responses or handle specific redirect URLs within your BuildShip workflow. If you need further guidance, feel free to check out more specific Supabase documentation or tutorials on integrating LinkedIn authentication.
BuildShip AI Support

Did you find this page helpful?