Skip to content

Commit d10340b

Browse files
scottinetxbill82
authored andcommitted
[JS SDK] auth:createCredentials do not return the password (#278)
1 parent d9dbbce commit d10340b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sdk-reference/js/6/auth/create-my-credentials/snippets/create-my-credentials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ await kuzzle.auth.login('local', credentials);
55
const response = await kuzzle.auth.createMyCredentials('other', credentials);
66
console.log(response);
77
/*
8-
{ username: 'foo', password: 'bar' }
8+
{ username: 'foo', kuid: '<user unique identifier>' }
99
*/
1010

1111
console.log('Credentials successfully created');

src/sdk-reference/js/6/auth/get-my-credentials/snippets/get-my-credentials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ try {
66
const localCredentials = await kuzzle.auth.getMyCredentials('local');
77
console.log(localCredentials);
88
/*
9-
{ username: 'foo', kuid: 'foo' }
9+
{ username: 'foo', kuid: '<user unique identifier>' }
1010
*/
1111

1212
console.log('Success');

0 commit comments

Comments
 (0)