Facebook

Github | npm

OAuth Facebook Strategy for accounts-js

Install

yarn add @accounts/oauth @accounts/oauth-facebook

Usage

import AccountsServer from '@accounts/server';
import AccountsOauth from '@accounts/oauth';
import AccountsOAuthFacebook from '@accounts/oauth-facebook';
const accountsOauth = new AccountsOauth({
facebook: {
key: 'your-facebook-client-id',
secret: 'your-facebook-client-secret',
},
));
const accountsServer = new AccountsServer(...config, {
password: password,
oauth: accountsOauth,
});
Last updated on