Skip to content

Commit

Permalink
update access token detail
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Sep 27, 2022
1 parent 8b66b66 commit 90a2e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dspback/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def get_current_user(
credentials_exception.detail = f"No user found for orcid {token_data.orcid}"
raise credentials_exception
if not user.access_token:
credentials_exception.detail = "User access token is missing"
credentials_exception.detail = "Access token is missing"
raise credentials_exception
if user.access_token != token:
credentials_exception.detail = "Access token is invalid"
Expand Down

0 comments on commit 90a2e46

Please sign in to comment.