login with Oauth2 provider in twitter with satellizer-open source projects sahat/satellizer
I would like to build a login with satellizer for Twitter. But I can’t fuguire out how it is possible with the use of Oauth2.0.
Here my function:
$authProvider.twitter({
authorizationEndpoint: 'https://api.twitter.com/oauth/authorize',
redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host,
scope: [],
scopeDelimiter: ' ',
type: '2.0',
clientId: '[myClientID]'
});
What do I wrong?