line-login-go icon indicating copy to clipboard operation
line-login-go copied to clipboard

LINE Login starter kit in Go

LINE loing in Go: Sample code for LINE login in Go

GoDocgoreportcard.com Go

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".

Deploy on Heroku

Deploy

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

Run In Docker

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

License

MIT License