Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to customize access and refresh cookie keys/names #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DrOncogene
Copy link

@DrOncogene DrOncogene commented Jun 2, 2024

users are now able to change the cookie names by setting env variables

users are now able to change the cookie names by setting env variables

- defined JWT_ACCESS_COOKIE_NAME and JWT_REFRESH_COOKIE_NAME env variables
- both are used to set the APICookieKey at class definition time
- add samesite and httponly parameters to JwtAuthBase.set_access_cookie and JwtAuthBase.set_refresh_cookie methods
- this allows for more customization of the cookie parameters that FastAPI sets on the response
- every tests passes and other functionalities are as is
@DrOncogene
Copy link
Author

@hasB4K @k4black

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant