added firebase and rudimentary leaderboard support

This commit is contained in:
derek
2025-04-09 11:19:02 -05:00
parent ce08df66e6
commit 25eb9e725a
121 changed files with 4987 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
class_name GitHubProvider
extends AuthProvider
func _init(client_id: String,client_secret: String):
randomize()
set_client_id(client_id)
set_client_secret(client_secret)
self.should_exchange = true
self.redirect_uri = "https://github.com/login/oauth/authorize?"
self.access_token_uri = "https://github.com/login/oauth/access_token"
self.provider_id = "github.com"
self.params.scope = "user:read"
self.params.state = str(randf_range(0, 1))
self.params.response_type = "code"