8000 Actually use the loginUser arguments in the example (#7714) · coderanger/django-rest-framework@750bad0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 750bad0

Browse files
authored
Actually use the loginUser arguments in the example (encode#7714)
1 parent 4e0d6c4 commit 750bad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/api-clients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ For example, using the "Django REST framework JWT" package
453453

454454
function loginUser(username, password) {
455455
let action = ["api-token-auth", "obtain-token"];
456-
let params = {username: "example", email: "example@example.com"};
456+
let params = {username: username, password: password};
457457
client.action(schema, action, params).then(function(result) {
458458
// On success, instantiate an authenticated client.
459459
let auth = window.coreapi.auth.TokenAuthentication({

0 commit comments

Comments
 (0)
0