h-shibuya commited on
Commit
cfe4526
1 Parent(s): 577807b

Update modules/app.py

Browse files
Files changed (1) hide show
  1. modules/app.py +5 -5
modules/app.py CHANGED
@@ -34,11 +34,11 @@ class UnauthenticatedError(HTTPException):
34
 
35
  # Dependency to get the current user
36
  def get_user(request: Request):
37
- id_token = request.session.get("id_token")
38
- if id_token is None:
39
- raise UnauthenticatedError()
40
- decoded_jwt = verify_token(id_token=id_token)
41
- print(decoded_jwt)
42
 
43
  user = request.session.get('user')
44
  return user
 
34
 
35
  # Dependency to get the current user
36
  def get_user(request: Request):
37
+ # id_token = request.session.get("id_token")
38
+ # if id_token is None:
39
+ # raise UnauthenticatedError()
40
+ # decoded_jwt = verify_token(id_token=id_token)
41
+ # print(decoded_jwt)
42
 
43
  user = request.session.get('user')
44
  return user