Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AC_PKCE/API_server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def verify_access_token(access_token):
try:
decoded_token = jwt.decode(access_token.encode(), public_key,
issuer = ISSUER,
algorithm = 'RS256')
algorithms = 'RS256')
except (jwt.exceptions.InvalidTokenError,
jwt.exceptions.InvalidSignatureError,
jwt.exceptions.InvalidIssuerError,
Expand Down
4 changes: 2 additions & 2 deletions AC_PKCE/auth_server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def generate_access_token():
"exp": time.time() + JWT_LIFE_SPAN
}

access_token = jwt.encode(payload, private_key, algorithm = 'RS256').decode()

access_token = jwt.encode(payload, private_key, algorithm = 'RS256')
return access_token

def generate_authorization_code(client_id, redirect_url, code_challenge):
Expand Down