auth: add adapter for Facebook accountkit login (#4434)
* Integrate auth adapter for Facebook accountkit login * Also verify Facebook app id associated with account kit login * Add appsecret_proof as extra graph request parameter * Specific error message for Account kit and more test coverage * One more test to cover when AppIds for Facebook account kit not configured properly
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import loadAdapter from '../AdapterLoader';
|
||||
|
||||
const facebook = require('./facebook');
|
||||
const facebookaccountkit = require('./facebookaccountkit');
|
||||
const instagram = require("./instagram");
|
||||
const linkedin = require("./linkedin");
|
||||
const meetup = require("./meetup");
|
||||
@@ -27,6 +28,7 @@ const anonymous = {
|
||||
|
||||
const providers = {
|
||||
facebook,
|
||||
facebookaccountkit,
|
||||
instagram,
|
||||
linkedin,
|
||||
meetup,
|
||||
@@ -43,7 +45,6 @@ const providers = {
|
||||
wechat,
|
||||
weibo
|
||||
}
|
||||
|
||||
function authDataValidator(adapter, appIds, options) {
|
||||
return function(authData) {
|
||||
return adapter.validateAuthData(authData, options).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user