From 061ed07680d0e1f6feb89ad281e46cb321dce21c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 15 Jan 2021 10:16:29 +0100 Subject: token cookie working --- api/auth/signup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/auth/signup.py b/api/auth/signup.py index 7007af7..5fa067d 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -38,6 +38,6 @@ def index(): token.add_token(user_id, token.hash_token(new_token)) res = make_response("", 200) - res.set_cookie("token", new_token["token"], expires = int(new_token["expireDate"] / 1000)) + res.set_cookie("token", new_token["token"], expires = int(new_token["expirationDate"] / 1000)) return res -- cgit v1.2.3