Skip to content

Commit 3a8a7e6

Browse files
stmnfenix-hub
authored andcommitted
fix sign up function
1 parent d26cf57 commit 3a8a7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/supabase/Auth/auth.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ func _check_auth() -> AuthTask:
6969
func sign_up(email : String, password : String) -> AuthTask:
7070
if _auth != "": return _check_auth()
7171
var payload : Dictionary = {"email":email, "password":password}
72-
var auth_task : AuthTask = AuthTask.new._setup(
72+
var auth_task : AuthTask = AuthTask.new()._setup(
7373
AuthTask.Task.SIGNUP,
7474
_config.supabaseUrl + _signup_endpoint,
7575
_header,
76-
payload
76+
JSON.stringify(payload)
7777
)
7878
_process_task(auth_task)
7979
return auth_task

0 commit comments

Comments
 (0)