Typo fix.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-09-24 20:46:48 -04:00
parent d097a0e2a6
commit a2dbb6c9e6

View File

@@ -70,7 +70,7 @@ def _get_access_token(code, state):
f"Error when getting id token {response_json} #notify-admin-1505"
)
raise KeyError(f"'access_token' {response.json()}") from e
id_token = jwt.decode(id_token, keystring, algorithms=["RS256"])
id_token = jwt.decode(encoded_id_token, keystring, algorithms=["RS256"])
nonce = id_token["nonce"]
if nonce != os.getenv("TOKEN_NONCE"):
login_manager.unauthorized()