Docs for retrieveAccount method (#1127)
* Docs for retrieveAccount method * fix setTimeout call
This commit is contained in:
parent
4b68730cfd
commit
516c39deaf
|
@ -5,6 +5,7 @@ vNext Release notes (TBD)
|
|||
|
||||
### Enhancements
|
||||
* Add support for Linking Objects (AKA Backlinks).
|
||||
* Add support for retrieving user account information.
|
||||
|
||||
### Bug fixes
|
||||
* Node
|
||||
|
|
17
docs/sync.js
17
docs/sync.js
|
@ -225,6 +225,23 @@ class User {
|
|||
* @returns {Realm}
|
||||
*/
|
||||
openManagementRealm() {}
|
||||
|
||||
/**
|
||||
* Get account information for a user. (requires administrator privilidges)
|
||||
* @param {string} provider - the provider to query for user account information (ex. 'password')
|
||||
* @param {string} username - the target username which account information should be retrieved
|
||||
* @returns - json object for the retrieved account information
|
||||
* @example
|
||||
* {
|
||||
* "provider_id": "user@email.co",
|
||||
* "provider": "password",
|
||||
* "user": {
|
||||
* "id": "06ac9a0a-a96a-4ee1-b53c-b05a7542035a",
|
||||
* "isAdmin": true,
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
retrieveAccount() {provider, username}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,9 +58,7 @@ exports.createAdminUser = function () {
|
|||
let isAdmin = newAdminUser.isAdmin;
|
||||
user.logout();
|
||||
if (!isAdmin) {
|
||||
setTimeout(() => {
|
||||
waitForServerToUpdateAdminUser();
|
||||
}, 500);
|
||||
setTimeout(waitForServerToUpdateAdminUser, 500);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue