Spaces:
Sleeping
Sleeping
Update modules/app.py
Browse files- 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
|