A simple Express application demonstrating the OAuth 2.1 flow using @linekit/login.
- Create a LINE Login channel in the LINE Developer Console.
- In "LINE Login" tab, add
http://localhost:3000/callbackto Callback URL. - Create a
.envfile (or just export env vars):
export LINE_LOGIN_CHANNEL_ID="your_channel_id"
export LINE_LOGIN_CHANNEL_SECRET="your_channel_secret"npm run dev- Open
http://localhost:3000. - Click "Log in with LINE".
- Log in with your LINE account.
- See your profile data (Name, Picture, Email) and tokens displayed.