Omkar008 commited on
Commit
5676a9e
1 Parent(s): 1405000

Update models/supabase_models.py

Browse files
Files changed (1) hide show
  1. models/supabase_models.py +7 -6
models/supabase_models.py CHANGED
@@ -30,9 +30,10 @@ def AuthUser_Validator(apitoken: str):
30
  return str(user.user.id)
31
  except Exception as e:
32
  print("Exceptional error")
33
- if apitoken == settings.SUPABASE_ANON_KEY:
34
- return "Exceptional error"
35
- raise HTTPException(
36
- status_code=401,
37
- detail=f"invalid Api Token: unable to parse or verify signature, signing method (alg) is unavailable.",
38
- )
 
 
30
  return str(user.user.id)
31
  except Exception as e:
32
  print("Exceptional error")
33
+ return "Exceptional error"
34
+ # if apitoken == settings.SUPABASE_ANON_KEY:
35
+ # return "Exceptional error"
36
+ # raise HTTPException(
37
+ # status_code=401,
38
+ # detail=f"invalid Api Token: unable to parse or verify signature, signing method (alg) is unavailable.",
39
+ # )