# Getting started with LINE Login
This page explains how to get started with LINE Login by deploying a simple starter web app. The web app lets users log in with their LINE accounts. You can use the access token issued when a user logs in to get the user's profile.
After completing all the steps on this page, you'll have a better understanding of how LINE Login works and how to build it into your web app.
**iOS/Android/Unity starter apps**
We also offer starter apps for specific platforms:
- [Trying the starter app - iOS Swift](https://developers.line.biz/en/docs/line-login-sdks/ios-sdk/swift/try-line-login/)
- [Trying the sample app - Android](https://developers.line.biz/en/docs/line-login-sdks/android-sdk/try-line-login/)
- [Trying the starter app - Unity](https://developers.line.biz/en/docs/line-login-sdks/unity-sdk/try-line-login/)
## Before you begin
Before you can use the LINE Login starter app, you'll need the following:
| Requirement | Description |
| --- | --- |
| LINE account | An account for the LINE app. You need a LINE account to try out the starter app. To create a LINE account, [download](https://line.me/) LINE for iOS or LINE for Android and sign up. For more information about creating a new LINE account, see [Create a new account](https://guide.line.me/ja/signup-and-migration/line-signup.html) (only available in Japanese) in the LINE user's guide. |
| Provider | Provider is a concept that describes the person or organization that provides the application. Create a provider on the [LINE Developers Console](https://developers.line.biz/console/). A LINE user has a different user ID for each provider. |
| LINE Login channel | A channel forms the connection between your app and the LINE Platform. Create a channel within the provider. You need to create a channel for each app. Create a LINE Login channel on the [LINE Developers Console](https://developers.line.biz/console/register/line-login/channel/).
Notes:
line-login-starter-{YYYYMMDD}
- Region
- Config Variables
- Callback URL in the following format: `https://{Heroku app name}.herokuapp.com/auth`
- Channel ID (found in the [LINE Developers Console](https://developers.line.biz/console/))
- Channel secret (found in the [LINE Developers Console](https://developers.line.biz/console/))
4. Select **Deploy app** and confirm that your app is successfully deployed.
## Step 3: Check the channel settings and enter the callback URL
In order to use the LINE Login channel for web apps, the **App Type** and **Callback URL** must be set correctly.
1. From the [LINE Developers Console](https://developers.line.biz/console/), select the channel you created in Step 1.
2. Click the **Basic settings** tab, and make sure **Web app** is displayed under **App types**.
3. Click the **LINE Login** tab and enter the **Callback URL** from Heroku (`https://{Heroku app name}.herokuapp.com/auth`).
### LINE Login's basic settings
The **Basic settings** tab contains basic information about your channel. Here's the information you'll find:
| Item | Description |
| --- | --- |
| **Channel ID** | Unique identifier for the channel |
| **Region to provide the service** | The region you want to provide your LINE Login service. You can only set the region when creating a new channel. |
| **Company or owner's country or region** | Country or region of the company or owner that manage the channel |
| **Channel icon** | The channel's icon |
| **Channel name** | The channel's name |
| **Channel description** | The channel's description |
| **Email address** | Email address to receive important updates about the channel |
| **Privacy policy URL** | The URL of the app's privacy policy |
| **Terms of use URL** | The URL of the app's terms of use |
| **App types** | The type of app you plan to integrate LINE Login with |
| **Permissions** | The type of user data this channel can access |
| **Channel secret** | A unique secret key you can use to grant an app access to your channel |
| **Assertion Signing Key** | The UUIDs associated with your assertion signing key pair |
| **Your user ID** | Your LINE account's user ID |
| **Linked LINE Official Account** | Your LINE Official Account linked to this channel. You can only link a LINE Official Account from the same provider. |
| **Localization** | You can add other languages to provide multi-language support for your channel. |
| **Email address permission** | Apply for permission to request a user's email using OpenID Connect. |
| **Delete** | Delete this channel. |
## Step 4: Try the app
1. Browse to the URL of your app (`https://{Heroku app name}.herokuapp.com`). You should see this:

2. Click **Log in**.
You'll be redirected to our standard login page. The URL starts with `https://access.line.me/oauth2/v2.1/` and contains a number of query parameters. To learn what they mean, read [Integrating LINE Login with your web app](https://developers.line.biz/en/docs/line-login/integrate-line-login/).
3. Log in to LINE and agree to grant the required permissions to the app.
When you successfully log in with your LINE credentials, the app displays your LINE user profile image, display name, and status message. (If you're using an iOS or Android device and are already logged in to LINE, you'll be logged in automatically.)
### Try out the other features of the starter app
Once you've logged into the app, you can select the following buttons to try out other features of this app:
- Verify the user access token
- Refresh the user access token
- Revoke the access token (log out)
### Check logs
Check your app's logs with [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli).
1. Log in to Heroku from the command line.
```sh
$ heroku login
```
1. Check the logs.
```sh
$ heroku logs --app {Heroku app name} --tail
```
## Step 5: Customize your app
You can download the starter app to your local machine to test and make changes for yourself. You can then deploy the app to a web server of your choice. Here, we'll look at how to make and deploy changes to the Heroku app you created in Step 1.
Make sure you have these installed:
- JDK 1.8 or later
- Maven™ 3.0 or later
- Git™
1. Clone the [line-login-starter](https://github.com/line/line-login-starter) GitHub repository.
```sh
git clone https://github.com/line/line-login-starter.git
```
1. `cd` into `line-login-starter`.
1. Add a remote for Heroku to your local repository.
```sh
$ heroku git:remote -a {Heroku app name}
```
1. Make edits and commit changes (optional).
```sh
$ git add .
$ git commit -m "First commit"
```
1. Push changes to Heroku master.
```sh
$ git push heroku master
```
## Step 6: Publish your channel (optional)
LINE Login channels are created with "Developing" status. With this status, only users with the Admin or Tester role (see [Managing roles](https://developers.line.biz/en/docs/line-developers-console/managing-roles/)) can use the LINE Login channel. If you want to allow other users to access your app, you have to change the status of the app to "Published". To do so, open your LINE Login channel on the [LINE Developers Console](https://developers.line.biz/console/), and click the **Developing** status at the top of the page.
If your current channel is for testing purposes only, you can leave the status as it is. But to make any future app available to users, you'll need to publish the channel that it's linked to. Note that once you change the status to "Published", you can't change it back to "Developing".
### How to test with a LINE Login channel with the "Developing" status
When testing with a LINE Login channel with the "Developing" status, a developer account that has been given a role to test on the channel must be linked to a LINE account. By linking a LINE account to the Business ID associated with your developer account, you can link your LINE account to your developer account.
Developer accounts are always linked to Business ID on a one-to-one basis. However, linking a Business ID to your LINE account is optional. Therefore, there may be cases where your Business ID and your LINE account are not linked. When testing LINE Login, make sure that your Business ID is linked to your LINE account.
When testing LINE Login, you will need to log in using your LINE account that is linked to your developer account. Note that you can't log in using the email address and password registered for your Business ID.
For more information on linking a Business ID with a LINE account, see [Link your Business ID with your LINE account](https://developers.line.biz/en/docs/line-developers-console/login-account/#link-business-account-with-line-account) in the LINE Developers Console documentation.
## Next steps
- [Integrating LINE Login with your web app](https://developers.line.biz/en/docs/line-login/integrate-line-login/)
- [Integrating LINE Login with your iOS app - Swift](https://developers.line.biz/en/docs/line-login-sdks/ios-sdk/swift/integrate-line-login/)
- [Integrating LINE Login with your Android app](https://developers.line.biz/en/docs/line-login-sdks/android-sdk/integrate-line-login/)
- [Integrating LINE Login with your Unity game](https://developers.line.biz/en/docs/line-login-sdks/unity-sdk/integrate-line-login/)