Spaces:
Sleeping
Sleeping
Update routers/receipt_radar_callback_router.py
Browse files
routers/receipt_radar_callback_router.py
CHANGED
@@ -30,7 +30,8 @@ async def callback(code:str):
|
|
30 |
user_email = user_info_response.json().get('email')
|
31 |
print(user_email)
|
32 |
supabase_init = SupabaseDb()
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
36 |
return {"email":user_email}
|
|
|
30 |
user_email = user_info_response.json().get('email')
|
31 |
print(user_email)
|
32 |
supabase_init = SupabaseDb()
|
33 |
+
try:
|
34 |
+
supabase_init.insert_tokens(access_token,refresh_token,user_email)
|
35 |
+
except Exception as e:
|
36 |
+
return {"email":user_email}
|
37 |
return {"email":user_email}
|