Refer LINE Developer Document "Integrating LINE Login with your web app" for more detail.
This sample code implement how to integrate LINE login to your website in Go. You can use this sample code to integrate LINE login in your web application. Also this also provide link a chatbot service when user use LINE login. Refer "Linking a bot with your LINE Login channel".
Before deploy this to your Heroku, you will need complete as follows:
- Create a LINE login channel. Remember it's channel ID and channel secret.
- Crete a LINE Message API channel. Remember it's channel secret and token.
- Link the chatbot to the LINE login channel
docker build -t line-login-go:latest .
docker run \
-e LINECORP_PLATFORM_CHATBOT_CHANNELSECRET=your_secret \
-e LINECORP_PLATFORM_CHATBOT_CHANNELTOKEN=your_token \
-e LINECORP_PLATFORM_SERVERURL=http://localhost:8080 \
-e LINECORP_PLATFORM_CHANNEL_CHANNELID=your_channel_id \
-e LINECORP_PLATFORM_CHANNEL_CHANNELSECRET=your_channel_secret \
-e PORT=8080 \
-p 8080:8080 \
line-login-go
MIT License