django-ninja-jwt icon indicating copy to clipboard operation
django-ninja-jwt copied to clipboard

A JSON Web Token authentication plugin for the Django REST Framework.

Results 18 django-ninja-jwt issues
Sort by recently updated
recently updated
newest added

settings.py ```python ... NINJA_JWT = { "ACCESS_TOKEN_LIFETIME": timedelta(seconds=30), "REFRESH_TOKEN_LIFETIME": timedelta(minutes=1), } ... ``` I set the lifetime really low to test if the token expires. The access token is not...

I am adding a 'user' key to the token claims with the user data including its permissions. Following exactly [this](https://eadwincode.github.io/django-ninja-jwt/customizing_token_claims/) I get the tokens with no problem. But resolving the...

Hello, when calling the "http://localhost:8000/api/token/pair" endpoint, I need to provide username and password. However, my User model does not have the password field. How can I modify this without changing...

I want to implement `remember_me` functionality into jwt. Users that have `remember_me=True` should have Refresh token lifetime set to 90 days. How to implement that?

I'm having a hard time trying to change the `username` field to become `email`, and use it for validation instead. It would be useful to have a tutorial for making...

Hi, I have problem with sliding tokens. The problem I'm running into is that I can only refresh the token while the auth expiration claim is valid. When auth exp...

Below is a working example from Django Rest Framework: ``` REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', ], 'EXCEPTION_HANDLER': 'messages_api.views.api_exception_handler', 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework_simplejwt.authentication.JWTTokenUserAuthentication', ], } # JWT AUTH0_DOMAIN = get_env_var('AUTH0_DOMAIN') AUTH0_AUDIENCE...

Hello, I have an issue with modifying the token claims when using /verify/. I followed through the docs to modify TOKEN_VERIFY_INPUT_SCHEMA By default, the verify's response is {} and I...

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.3.4 to 0.4.2. Release notes Sourced from ruff's releases. v0.4.2 Changes Rule changes [flake8-pyi] Allow for overloaded __exit__ and __aexit__ definitions (PYI036) (#11057) [pyupgrade] Catch usages of...

dependencies
python