Handling errors

The getResponseCode() method of the LineLoginResult object returns one of the following response codes.

Response codeDescription
SUCCESSThe login was successful.
CANCELThe login failed because the user canceled the login process.
AUTHENTICATION_AGENT_ERRORThe login failed because the user tapped the Cancel or Back button on the consent screen.
SERVER_ERRORThe login failed due to a server-side error.
NETWORK_ERRORThe login failed because the SDK could not connect to the LINE Platform.
INTERNAL_ERRORThe login failed due to an unknown error.