Twitter signin for website - using JavaScript SDK?

oauth

#1

What is the easy way to create - signIn with twitter?

let restURL: string = “https://api.twitter.com/oauth2/token”;

let headers = new Headers({
‘Content-Type’: ‘application/x-www-form-urlencoded;charset=UTF-8’ ,
‘Content-Length’: ‘29’,
‘token’:‘xxxxxxxxxxxx’,
‘Accept-Encoding’: ‘gzip’,
‘User-Agent’:‘My Twitter App v1.0.23’,
‘Authorization’:‘xxxxxxxxx’,
‘grant_type’:‘client_credentials’});

let options = new RequestOptions({ headers: headers });

return this.http.post(restURL, null,options)

#2

Hi there! Have you checked out the instructions at https://dev.twitter.com/web/sign-in/implementing? Moved your post to OAuth forum as it’s more fitting here.


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.