Skip to content

Commit aff56cf

Browse files
committed
document update and failing test fix
1 parent e56da0c commit aff56cf

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

docs/docs/auth_integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Authenticated user can be found in `request.user` or `request.auth`
66

77
``` {.sourceCode .python}
88
from ninja_extra import APIController, router, route
9-
from ninja_jwt import JWTAuth
9+
from ninja_jwt.authentication import JWTAuth
1010
1111
@router('')
1212
class MyController(APIController):
@@ -36,7 +36,7 @@ Please read more on [Django Ninja - Authentication](https://django-ninja.rest-fr
3636
example:
3737
``` {.sourceCode .python}
3838
from ninja.security import APIKeyHeader
39-
from ninja_jwt import JWTBaseAuthentication
39+
from ninja_jwt.authentication import JWTBaseAuthentication
4040
from ninja import router
4141
4242
class ApiKey(APIKeyHeader):

ninja_jwt/__init__.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
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-
]

0 commit comments

Comments
 (0)