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 withclientId
andclientSecret
.- Secure authentication exchanges the
code
andredirect_uri
provided by the client for an access token using Line's OAuth flow.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | The adapter configuration options. Properties
|