Added button to view imported quiz on Kahoot!.

This commit is contained in:
Mawoka
2023-01-27 23:02:53 +01:00
parent 2d05ee26bd
commit 76311ed0ee
8 changed files with 124 additions and 83 deletions
+1 -2
View File
@@ -331,8 +331,7 @@ async def get_email_from_jwt(data: GetEmailFromJWT):
try:
payload = jwt.decode(data.jwt, settings.secret_key, algorithms=["HS256"])
return payload.get("sub")
except JWTError as e:
print(e)
except JWTError:
raise HTTPException(status_code=401)