Auth hooks for Custom Oauth Provider
Hey Devs, I need to authenticate with Oauth providers that aren't provided in Supabase. Can auth hooks work for this or is there another way that will still allow me to access the Supabase services.
4 Replies
This thread covers a bit on their plans for non supported OAuth providers.
https://github.com/supabase/auth/issues/451#issuecomment-3184167296
GitHub
External OAuth Provider Requests · Issue #451 · supabase/auth
This issue is for tracking requests/demand for integration with External OAuth Providers. Give a comment a thumbs up if you want the connector built or drop a comment if you wish to work on any of ...
Also depending on the application you might be able to handle the authentication flow your self if it support Auth 2.0 (though it can be a bit long) . You would call an auth endpoint on the relevant service, the user signs in and it passes an authorizaton token to a */callback endpoint that you then send to your backend (say an edge function). Exchange the code for a refresh/access token in the edge function and fetch the profile of the user and sign in/sign up using the supabase client on the backend
So we will get support for standard oauth providers, fantastic👏
Thank you, let me try hacking it
yeah let me know how you get on, i have some code for a Xero integration that i did in a previous project that did this whole flow so might be able to provide some sample code