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

Commits on Jun 2, 2024

  1. feat: add ability to customize access and refresh cookie keys/names

    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 committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    1f098e0 View commit details
    Browse the repository at this point in the history