Skip to content

Commit 6010ac7

Browse files
authored
Update auth_integration.md (#76)
`self` should be `request` to compatible with `django-ninja` practise.
1 parent c2f96f4 commit 6010ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/auth_integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ from ninja_jwt.authentication import JWTAuth
2424
router = router('')
2525

2626
@router.get('/some-endpoint', auth=JWTAuth())
27-
def some_endpoint(self):
27+
def some_endpoint(request):
2828
...
2929
```
3030

@@ -71,4 +71,4 @@ class MyController:
7171
N:B `some_endpoint` must be asynchronous. Any endpoint function marked with `AsyncJWTAuth` must be asynchronous.
7272

7373
!!! warning
74-
Asynchronous feature is only available for django version > 3.0
74+
Asynchronous feature is only available for django version > 3.0

0 commit comments

Comments
 (0)