Skip to content

Commit

Permalink
Removed the expiration of access token cookies when bearer authentica…
Browse files Browse the repository at this point in the history
…tion is enabled to reduce confusion during instruction.
  • Loading branch information
lanmaster53 committed Jun 5, 2024
1 parent 4610159 commit 071b0f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwnedapi/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def post(self):

def delete(self):
response = Response(None, 204)
response.delete_cookie('access_token')
if not Config.get_value('BEARER_AUTH_ENABLE'):
response.delete_cookie('access_token')
return response

api.add_resource(TokenList, '/access-token')
Expand Down

0 comments on commit 071b0f0

Please sign in to comment.