diff --git a/mirror-godot-app/scripts/net/auth.gd b/mirror-godot-app/scripts/net/auth.gd index 34131b71..33096fd2 100644 --- a/mirror-godot-app/scripts/net/auth.gd +++ b/mirror-godot-app/scripts/net/auth.gd @@ -12,9 +12,11 @@ func create_account_if_missing() -> Promise: func check_login_code(login_code: String) -> Promise: - return self.post_request(POST_CHECK_LOGIN_CODE, "/login-code/check-login-code", { - "loginCode": login_code - }) + return self.post_request( + POST_CHECK_LOGIN_CODE, + "/login-code/check-login-code?loginCode=" + login_code, + {} + ) func _promise_fulfill_successful(request: Dictionary, promise: Promise) -> void: diff --git a/mirror-godot-app/ui/login/login_code_ui.gd b/mirror-godot-app/ui/login/login_code_ui.gd index a88d5859..60132df0 100644 --- a/mirror-godot-app/ui/login/login_code_ui.gd +++ b/mirror-godot-app/ui/login/login_code_ui.gd @@ -15,6 +15,8 @@ func _on_sign_in_pressed() -> void: assert(data.refreshToken) assert(data.spaceId) assert(data.loginCode) + print("login code data: ", data) + await LoginService.login_as_user_deeplink("", data.refreshToken, data.spaceId, get_tree() ) func _ready(): var login_code: bool = ProjectSettings.get_setting("feature_flags/force_enable_login_code", false)