Use local or external login success page? #323
-
I'm trying to make my Google OAuth2 redirect happen, but I have no idea how to do that with a local file. Is there a known way on how to use a local file? And if it's any better/ just because, I'd like to know how I can make it using a website file I have. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To use a local file, OAuth2 must be configured with a redirect URL to localhost. This requires you to serve a static page on localhost. We do this by default, but instead of creating a specific file, for now the plugin automatically returns an HTML response directly to the browser. You can read that here GodotFirebase/addons/godot-firebase/auth/auth.gd Lines 343 to 353 in 4df1a40 Anyway, OAuth2 is supposed to happen between online platforms, and localhost is generally used to test your flow. |
Beta Was this translation helpful? Give feedback.
To use a local file, OAuth2 must be configured with a redirect URL to localhost. This requires you to serve a static page on localhost. We do this by default, but instead of creating a specific file, for now the plugin automatically returns an HTML response directly to the browser. You can read that here
GodotFirebase/addons/godot-firebase/auth/auth.gd
Lines 343 to 353 in 4df1a40