Skip to content

Commit 55a4cb1

Browse files
committed
updated docs
1 parent 8a9059a commit 55a4cb1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/customizing_token_claims.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,22 @@ NINJA_JWT = {
148148
'TOKEN_OBTAIN_PAIR_INPUT_SCHEMA': 'project.schema.MyTokenObtainPairInputSchema',
149149
}
150150
```
151+
Other swappable schemas can be follow as shown below:
152+
```python
153+
# project/settings.py
151154

152-
Other swappable schemas can be found in [settings](../settings)
155+
NINJA_JWT = {
156+
# FOR OBTAIN PAIR
157+
'TOKEN_OBTAIN_PAIR_INPUT_SCHEMA': "project.schema.MyTokenObtainPairInputSchema",
158+
'TOKEN_OBTAIN_PAIR_REFRESH_INPUT_SCHEMA': "for.obtain_pair.refresh_input.schema",
159+
# FOR SLIDING TOKEN
160+
'TOKEN_OBTAIN_SLIDING_INPUT_SCHEMA': "for.obtain_sliding.input.schema",
161+
'TOKEN_OBTAIN_SLIDING_REFRESH_INPUT_SCHEMA': "for.obtain_pair.refresh_input.schema",
162+
163+
'TOKEN_BLACKLIST_INPUT_SCHEMA': "for.blacklist_input.schema",
164+
'TOKEN_VERIFY_INPUT_SCHEMA': "for.verify_input.schema",
165+
}
166+
```
153167

154168
![token_customization_git](./img/token_customize.gif)
155169

0 commit comments

Comments
 (0)