refactor: 💡 auth payloads now have "attributes" field

This commit is contained in:
Randall Morey committed 2021-04-01 17:41:30 -04:00
1 parent 6927008041
commit 3d13d8f412
11 files changed
+74 -218

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ export default class PasswordAuthenticator extends BaseAuthenticator {
const body = JSON.stringify({
command: 'login',
token_type: requestCookies ? 'cookie' : null,
credentials: { login_name, password },
attributes: { login_name, password },
});
const authEndpointURL = this.buildAuthEndpointURL(options);
const response = await fetch(authEndpointURL, { method: 'post', body });