OAuth Twitter Strategy for accounts-js
Install
yarn add @accounts/oauth @accounts/oauth-twitter
Usage
import AccountsServer from '@accounts/server';
import AccountsOauth from '@accounts/oauth';
import AccountsOAuthTwitter from '@accounts/oauth-twitter';
const accountsOauth = new AccountsOauth({
twitter: {
key: 'your-twitter-consumer-key',
secret: 'your-twitter-consumer-secret',
},
));
const accountsServer = new AccountsServer(...config, {
password: password,
oauth: accountsOauth,
});