Jon Solow
commited on
Commit
·
524e5b5
1
Parent(s):
45f646a
Fix missing execute on token creation
Browse files- src/data_storage.py +1 -1
src/data_storage.py
CHANGED
@@ -74,7 +74,7 @@ def login_by_token(token: str):
|
|
74 |
def create_new_token_for_user(user_id: int, existing_user: bool = False):
|
75 |
# returns true if logged in successfully
|
76 |
token = token_urlsafe(32)
|
77 |
-
|
78 |
return token
|
79 |
|
80 |
|
|
|
74 |
def create_new_token_for_user(user_id: int, existing_user: bool = False):
|
75 |
# returns true if logged in successfully
|
76 |
token = token_urlsafe(32)
|
77 |
+
supabase_client.table(TOKENS_TABLE).upsert({"user_id": user_id, "token": token}).execute()
|
78 |
return token
|
79 |
|
80 |
|