Skip to main content

Setup

1

Get credentials

Go to the LINE Developers Console and create a provider and channel. Choose LINE Login as the channel type. Add your redirect URI:
2

Configure

lib/theauth.ts

Scopes

Default scopes: openid, profile, email
The email scope requires an additional approval step in the LINE Developer Console. You must agree to the LINE Login email permission terms and submit for review.
This is a preset built on the generic OIDC factory, which reads the user from https://api.line.me/v2/profile and requires the response to contain the OIDC sub and email fields. That endpoint returns a userId field and no email, so sign-in is expected to fail with LINE userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 18, 2026