We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d9002 commit b7430ebCopy full SHA for b7430eb
src/Adapters/Auth/google.js
@@ -115,10 +115,10 @@ function validateAuthToken({ id, access_token }) {
115
// Returns a promise that fulfills if this user id is valid.
116
function validateAuthData({ id, id_token, access_token }, options) {
117
if (!id_token && !access_token) {
118
- throw new Parse.Error(
+ return Promise.reject(new Parse.Error(
119
Parse.Error.OBJECT_NOT_FOUND,
120
`id_token or access_token is missing for this user.`
121
- );
+ ));
122
}
123
124
if (id_token) {
0 commit comments