Skip to content

Commit 0f4ff49

Browse files
committed
Update ParseUser.js
1 parent ea8254c commit 0f4ff49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ParseUser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,18 @@ class ParseUser extends ParseObject {
666666
* @returns {Promise} A promise that is fulfilled with the user when
667667
* the login completes.
668668
*/
669-
static logInWithAdditionalAuth(username: string, password: string, authData: AuthData, options?: FullOptions) {
669+
static logInWithAdditionalAuth(username: string, password: string, authData: AuthData, options?: FullOptions) {
670670
if (typeof username !== 'string') {
671671
return Promise.reject(new ParseError(ParseError.OTHER_CAUSE, 'Username must be a string.'));
672672
}
673673
if (typeof password !== 'string') {
674674
return Promise.reject(new ParseError(ParseError.OTHER_CAUSE, 'Password must be a string.'));
675675
}
676-
if (Object.prototype.toString.call(auth) !== '[object Object]') {
676+
if (Object.prototype.toString.call(authData) !== '[object Object]') {
677677
return Promise.reject(new ParseError(ParseError.OTHER_CAUSE, 'Auth must be an object.'));
678678
}
679679
const user = new this();
680-
user._finishFetch({ username: username, password: password, authData: auth });
680+
user._finishFetch({ username: username, password: password, authData });
681681
return user.logIn(options);
682682
}
683683

0 commit comments

Comments
 (0)