Omkar008 commited on
Commit
9e1421c
·
verified ·
1 Parent(s): 682690e

Update routers/receipt_radar_callback_router.py

Browse files
routers/receipt_radar_callback_router.py CHANGED
@@ -30,11 +30,7 @@ async def callback(code:str):
30
  user_email = user_info_response.json().get('email')
31
  print(user_email)
32
  supabase_init = SupabaseDb()
33
- hushh_id =supabase_init.get_hushh_id(user_email)
34
- # supabase_init.authenticate_user(user_email,hushh_id.data[0]['hushh_id'],True)
35
- print(type(hushh_id))
36
- print(hushh_id)
37
- supabase_init.insert_tokens(access_token,refresh_token,hushh_id.data[0]['hushh_id'],user_email)
38
- # supabase_init.insert_tokens(access_token,refresh_token,user_email)
39
 
40
  return {"access_token":access_token}
 
30
  user_email = user_info_response.json().get('email')
31
  print(user_email)
32
  supabase_init = SupabaseDb()
33
+
34
+ supabase_init.insert_tokens(access_token,refresh_token,user_email)
 
 
 
 
35
 
36
  return {"access_token":access_token}