# Managing access tokens

The access tokens managed through the LINE Login API verifies that an app has been granted permission to access user data (such as user IDs, display names, profile images, and status messages) saved on the LINE Platform.

# Get the user's access token

An access token is returned by the LINE Platform once user authentication is complete. At this point, you can assume the app has permission to access user data.

To learn more, see:

LINE Login:


Access token expiry dates

An access token is valid for 30 days after being issued. Any response with an access token also includes the number of seconds until the token expires in the expires_in property.

# Refresh tokens

A refresh token is returned along with an access token once user authentication is complete. When an access token expires, you can use a refresh token to get a new one.

To learn more, see Refresh access token in the LINE Login v2.1 API reference.

Refresh token expiry dates

A refresh token is valid for up to 90 days after its corresponding access token was issued. If the refresh token expires, you must prompt the user to log in again to generate a new access token.

# Verify access tokens

Verify any access token that you receive from an app or external server before using it on your own servers.

To learn more about how to verify access tokens, see Using access tokens to register new users.