Skip to content

Supabase OAuth in Unity #154

Answered by wiverson
gaetandezeiraud asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is that you would have to open up a web view to start the flow, and then have a way to get the completed flow back to the native app. It's doable, but it's non-trivial. You'll need to coordinate between your Unity app, a custom web app you will have to write, and then have a way to get the session info back again from the custom web app after the flow is completed with the OAuth provider. This could be done by having some kind of WebSocket or polling back to the server from the Unity client.

You can see an example of how a flow like this works eg with the JetBrains toolbox when you log in, except that the flow would also have to include kicking over to the 3rd party OAuth…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gaetandezeiraud
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants