Skip to content

Commit

Permalink
Add support for stateless user authentication in SimpleJWT
Browse files Browse the repository at this point in the history
  • Loading branch information
wmeints committed Apr 6, 2024
1 parent b1a34b0 commit b228b38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drf_spectacular/contrib/rest_framework_simplejwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ def get_security_definition(self, auto_schema):

class SimpleJWTTokenUserScheme(SimpleJWTScheme):
target_class = 'rest_framework_simplejwt.authentication.JWTTokenUserAuthentication'


class SimpleJWTStatelessUserScheme(SimpleJWTScheme):
target_class = "rest_framework_simplejwt.authentication.JWTStatelessUserAuthentication"

0 comments on commit b228b38

Please sign in to comment.