File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Authenticated user can be found in `request.user` or `request.auth`
66
77``` {.sourceCode .python}
88from ninja_extra import APIController, router, route
9- from ninja_jwt import JWTAuth
9+ from ninja_jwt.authentication import JWTAuth
1010
1111@router('')
1212class MyController(APIController):
@@ -36,7 +36,7 @@ Please read more on [Django Ninja - Authentication](https://django-ninja.rest-fr
3636example:
3737``` {.sourceCode .python}
3838from ninja.security import APIKeyHeader
39- from ninja_jwt import JWTBaseAuthentication
39+ from ninja_jwt.authentication import JWTBaseAuthentication
4040from ninja import router
4141
4242class ApiKey(APIKeyHeader):
Original file line number Diff line number Diff line change 1- """Django Ninja JWT"""
1+ """Django Ninja JWT - JSON Web Token for Django-Ninja """
22
33__version__ = "0.0.1"
4-
5- from authentication import JWTAuth , JWTBaseAuthentication
6- from controller import (
7- SimpleJWTDefaultController ,
8- SimpleJWTSlidingController ,
9- TokenBlackListController ,
10- TokenObtainPairController ,
11- TokenObtainSlidingController ,
12- TokenVerificationController ,
13- )
14-
15- __all__ = [
16- "JWTAuth" ,
17- "JWTBaseAuthentication" ,
18- "SimpleJWTDefaultController" ,
19- "SimpleJWTSlidingController" ,
20- "TokenBlackListController" ,
21- "TokenObtainPairController" ,
22- "TokenObtainSlidingController" ,
23- "TokenVerificationController" ,
24- ]
You can’t perform that action at this time.
0 commit comments