MCPcopy Create free account
hub / github.com/parse-community/parse-server / validateAuthData

Function validateAuthData

src/Adapters/Auth/facebook.js:183–189  ·  view source on GitHub ↗
(authData, options)

Source from the content-addressed store, hash-verified

181
182// Returns a promise that fulfills iff this user id is valid.
183function validateAuthData(authData, options) {
184 if (authData.token) {
185 return verifyIdToken(authData, options);
186 } else {
187 return validateGraphToken(authData, options);
188 }
189}
190
191// Returns a promise that fulfills iff this app id is valid.
192function validateAppId(appIds, authData, options) {

Callers

nothing calls this directly

Calls 2

validateGraphTokenFunction · 0.85
verifyIdTokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…