LineAdapter

new LineAdapter(options)

Parse Server Configuration

To configure Parse Server for Line authentication, use the following structure:

Secure Configuration

{
  "auth": {
    "line": {
      "clientId": "your-client-id",
      "clientSecret": "your-client-secret"
    }
  }
}

Insecure Configuration (Not Recommended)

{
  "auth": {
    "line": {
      "enableInsecureAuth": true
    }
  }
}

The adapter requires the following authData fields:

  • Secure Authentication: code, redirect_uri.
  • Insecure Authentication (Not Recommended): id, access_token.

Auth Payloads

Secure Authentication Payload

{
  "line": {
    "code": "xxxxxxxxx",
    "redirect_uri": "https://example.com/callback"
  }
}

Insecure Authentication Payload (Not Recommended)

{
  "line": {
    "id": "1234567",
    "access_token": "xxxxxxxxx"
  }
}

Notes

  • enableInsecureAuth is not recommended and will be removed in future versions. Use secure authentication with clientId and clientSecret.
  • Secure authentication exchanges the code and redirect_uri provided by the client for an access token using Line's OAuth flow.
Parameters:
NameTypeDescription
optionsObject

The adapter configuration options.

Properties
NameTypeAttributesDefaultDescription
clientIdstring

Your Line App Client ID. Required for secure authentication.

clientSecretstring

Your Line App Client Secret. Required for secure authentication.

enableInsecureAuthboolean<optional>
false

[DEPRECATED] Enable insecure authentication (not recommended).