Twitter login with breeze api

OAuth, Breeze API and NextJs App

Create Twitter app

First, we need to create Twitter App and get an ID and Secret. So, let's follow bellow steps as well:

Go to Twitter Developer App to click here:

https://developer.twitter.com/en/portal/dashboardarrow-up-right

Developer dashboard

Generate token from App

Go to the app tab and generate a consumer key.

App key and tokens

User authentication setup

You will need to set up user authentication in the App setting.

User authentication settings

In the authentication setting page, you need to make sure some steps in below.

circle-info

As you can see Twitter need secure HTTP. So I'm used ngrok. https://ngrok.com/downloadarrow-up-right

That is! Let's move to laravel breeze API and NextJS.

Laravel Socialite Installation

SocialiteI'm using sail. So let's install socialite with laravel sail through via composer.

Last updated