Marli
Marli

Reputation: 9

How to authenticate user logging in with twitter using token

I'm trying to implement twitter login into my application, I obtain the oauth_token from twitter using socialite then I followed the steps at https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate

and I pass the token of the user to this URL: https://api.twitter.com/oauth/authenticate?oauth_token=some_token

but it always gives me "The request token for this page is invalid".

Upvotes: 0

Views: 571

Answers (1)

albus_severus
albus_severus

Reputation: 3704

For Laravel,

You Can Use Socialite

https://laravel.com/docs/5.8/socialite

Upvotes: 0

Related Questions