providers/line
default()β
default<P>(options): OAuthConfig< P >
Add LINE login to your page.
Setupβ
Callback URLβ
https://example.com/api/auth/callback/line
Configurationβ
import Auth from "@auth/core"
import LINE from "@auth/core/providers/line"
const request = new Request(origin)
const response = await Auth(request, {
providers: [LINE({ clientId: LINE_CLIENT_ID, clientSecret: LINE_CLIENT_SECRET })],
})
Resourcesβ
Configurationβ
Create a provider and a LINE login channel at https://developers.line.biz/console/. In the settings of the channel under LINE Login, activate web app and configure the following: Callback URL http://localhost:3000/api/auth/callback/line
Notesβ
By default, Auth.js assumes that the LINE provider is based on the Open ID Connect specification.
To retrieve email address, you need to apply for Email address permission. Open Line Developer Console, go to your Login Channel. Scroll down bottom to find OpenID Connect -> Email address permission. Click Apply and follow the instruction.
The LINE provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.
If you think you found a bug in the default configuration, you can open an issue.
Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.
Type parametersβ
βͺ P extends LineProfile