File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments