Skip to content

Commit d6ae3ce

Browse files
committed
lint fix
1 parent 5cc82ad commit d6ae3ce

21 files changed

+34
-34
lines changed

src/Adapters/Auth/OAuth1Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Parse = require('parse/node').Parse;
44

55
var OAuth = function (options) {
66
if (!options) {
7-
console.error('No options passed to OAuth');
7+
console.error('No options passed to OAuth');
88
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'Configuration error.');
99
}
1010
this.consumer_key = options.consumer_key;

src/Adapters/Auth/apple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const getAppleKeyByKeyId = async (keyId, cacheMaxEntries, cacheMaxAge) => {
3131

3232
const verifyIdToken = async ({ token, id }, { clientId, cacheMaxEntries, cacheMaxAge }) => {
3333
if (!token) {
34-
console.error('Invalid token');
34+
console.error('Invalid token');
3535
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, `Unauthorized`);
3636
}
3737

src/Adapters/Auth/facebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function validateGraphAppId(appIds, authData, options) {
3939
return;
4040
}
4141
if (!Array.isArray(appIds)) {
42-
console.error('appIds must be an array.');
42+
console.error('appIds must be an array.');
4343
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Unauthorized');
4444
}
4545
if (!appIds.length) {

src/Adapters/Auth/gcenter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function verifySignature(publicKey, authData) {
136136
function verifyPublicKeyIssuer(cert, publicKeyUrl) {
137137
const publicKeyCert = pki.certificateFromPem(cert);
138138
if (!ca.cert) {
139-
console.error('Invalid root certificate during Apple Game Center verification.');
139+
console.error('Invalid root certificate during Apple Game Center verification.');
140140
throw new Parse.Error(
141141
Parse.Error.OBJECT_NOT_FOUND,
142142
'Unauthorized'

src/Adapters/Auth/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function validateAuthData(authData) {
88
if (data && data.id == authData.id) {
99
return;
1010
}
11-
console.error('Github auth is invalid for this user.');
11+
console.error('Github auth is invalid for this user.');
1212
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Unauthorized');
1313
});
1414
}

src/Adapters/Auth/gpgames.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function validateAuthData(authData) {
1515
`https://www.googleapis.com/games/v1/players/${authData.id}?access_token=${authData.access_token}`
1616
);
1717
if (!(response && response.playerId === authData.id)) {
18-
console.error('Google Play Games Services - authData is invalid for this user.');
18+
console.error('Google Play Games Services - authData is invalid for this user.');
1919
throw new Parse.Error(
2020
Parse.Error.OBJECT_NOT_FOUND,
2121
'Authentication Failed'

src/Adapters/Auth/janrainengage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function validateAuthData(authData, options) {
1111
if (data && data.stat == 'ok' && data.profile.identifier == authData.id) {
1212
return;
1313
}
14-
console.error('Janrain engage auth is invalid for this user.');
14+
console.error('Janrain engage auth is invalid for this user.');
1515
throw new Parse.Error(
1616
Parse.Error.OBJECT_NOT_FOUND,
1717
'Unauthorized'

src/Adapters/Auth/keycloak.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const arraysEqual = (_arr1, _arr2) => {
5151

5252
const handleAuth = async ({ access_token, id, roles, groups } = {}, { config } = {}) => {
5353
if (!(access_token && id)) {
54-
console.error('Missing access token and/or User id');
54+
console.error('Missing access token and/or User id');
5555
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Authentication failed');
5656
}
5757
if (!config || !(config['auth-server-url'] && config['realm'])) {

src/Adapters/Auth/line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function validateAuthData(authData) {
1111
console.error('Line auth validation failed. Response:', response);
1212
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Invalid authentication');
1313
}).catch(err=>{
14-
console.error('Error validating Line auth:',err);
14+
console.error('Error validating Line auth:',err);
1515
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'Authentication validation failed');
1616
});
1717
}

src/Adapters/Auth/linkedin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function validateAuthData(authData) {
88
if (data && data.id == authData.id) {
99
return;
1010
}
11-
console.error('Linkedin auth is invalid for this user.');
11+
console.error('Linkedin auth is invalid for this user.');
1212
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Authentication failed');
1313
});
1414
}

0 commit comments

Comments
 (0)