mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Correct scheme
This commit is contained in:
parent
83cbff3331
commit
e6836c33e7
|
@ -274,7 +274,7 @@ For example, using the "Django REST framework JWT" package
|
||||||
result = client.action(schema, action, params)
|
result = client.action(schema, action, params)
|
||||||
|
|
||||||
auth = coreapi.auth.TokenAuthentication(
|
auth = coreapi.auth.TokenAuthentication(
|
||||||
scheme='Token',
|
scheme='JWT',
|
||||||
token=result['token']
|
token=result['token']
|
||||||
)
|
)
|
||||||
client = coreapi.Client(auth=auth)
|
client = coreapi.Client(auth=auth)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user