Skip to content

Commit

Permalink
Add docstring to RefreshAccessToken resource
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 29, 2021
1 parent e9f0a14 commit 9af4296
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/webqueue2api/api/resources/refresh_access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
from flask_jwt_extended import jwt_refresh_token_required, get_jwt_identity, create_access_token

class RefreshAccessToken(Resource):
"""Returns a new access token.
Return Codes:
200 (OK): On success.
500 (Internal Service Error): On error.
Returns:
tuple: New access token as JSON and HTTP response code.
"""
@jwt_refresh_token_required
def post(self):
username = get_jwt_identity()
Expand Down

0 comments on commit 9af4296

Please sign in to comment.