#Help Making An App That Makes Use Of Google Auth

8 messages · Page 1 of 1 (latest)

inner nest
#

To handle OAuth with Google as a provider, you need to use a standard browser and have a localhost server for it to redirect to. This is most easily done with tauri-plugin-oauth.
There are lots of implementations that have used Google and an OAuth provider. gdrive-sync keeps all the secrets in Rust; this is the recommended way. Since Rust can be quite confusing when you're new to it, you can also do it entirely from the frontend like tauri-oauth-supabase or tauri-firebase-login part 1 and part 2.

proven gazelle
#

"you can also do it entirely from the frontend" - using the supabase approach, is it possible to pass any auth data (all i need is to know if the user is authenticated) to the rust backend? or is it really all in the fronend

inner nest
#

all i need is to know if the user is authenticated
You can pass a boolean or enum to the backend for this.

#

I believe Supabase has a callback on authentication success which you could use.

proven gazelle
#

i would assume yes but im just curious

inner nest
#

The main difference is that you need to open a standard browser to handle credential input. Other than that, it's all done in Tauri the same way you would do so in a standard browser.