Omkar008 commited on
Commit
3cc523d
1 Parent(s): 68debae

Update routers/receipt_radar_callback_router.py

Browse files
routers/receipt_radar_callback_router.py CHANGED
@@ -30,10 +30,6 @@ 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
 
39
  return {"payload":hushh_id.json()}
 
30
  user_email = user_info_response.json().get('email')
31
  print(user_email)
32
  supabase_init = SupabaseDb()
33
+ supabase_init.insert_tokens(access_token,refresh_token,user_email)
 
 
 
 
34
 
35
  return {"payload":hushh_id.json()}