I have a problem with my login authentication using jwt in Django
here’s is the code
views.py
Blockquote
def Home(request):
token = request.session[‘id_token’]
userinfo = jwt.decode(token, options={"verify_signature":False})
employee_list = Employee.objects.get(Email_Address=userinfo['email'])
indent preformatted text by 4 spaces
# print(request.get_host())
return render(request, 'LMS/Home.html',
{'employees': employee_list, 'role': userinfo[settings.METADATA_NAMESPACE + 'app_metadata']['role']})
Blockquote