Skip to content

Use local or external login success page? #323

Answered by fenix-hub
Blockyheadman asked this question in Q&A
Discussion options

You must be logged in to vote

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

var data : PoolByteArray = '<p style="text-align:center">&#128293; You can close this window now. &#128293;</p>'.to_ascii()
peer.put_data(("HTTP/1.1 200 OK\n").to_ascii())
peer.put_data(("Server: Godot Firebase SDK\n").to_ascii())
peer.put_data(("Content-Length: %d\n" % data.size()).to_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Blockyheadman
Comment options

Answer selected by Blockyheadman
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