Emit LINE Login OAuth code scaffold
line_emit_login_snippetGenerate a ready-to-use LINE Login OAuth 2.1 flow code snippet for your backend framework. Includes authorization, token exchange, and optional PKCE, refresh, and friendship check.
Instructions
Generate a working LINE Login OAuth 2.1 flow scaffold (authorize URL + token exchange + verify + userinfo + optional refresh + optional friendship check) for your backend framework.
This replaces 10 separate OAuth tool calls with one paste-ready code block — Claude Code's superpower.
Args:
framework: express | nextjs-route-handlers | fastify | hono. Default 'express'.
scopes: ['profile', 'openid', 'email']. Default ['profile', 'openid'].
with_pkce: emit PKCE S256 helpers (recommended; default true).
with_friendship_check: include /friendship/v1/status call (default false).
with_refresh: include refresh-token route (default true).
typescript: emit TypeScript (default) or JavaScript.
Returns: { framework, scopes, code: string, env_vars_required: string[], notes: string[] }
The emitted code uses placeholders:
LINE_LOGIN_CHANNEL_ID
LINE_LOGIN_CHANNEL_SECRET
REDIRECT_URI
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | No | express | |
| scopes | No | ||
| with_pkce | No | Use PKCE S256 (recommended). | |
| with_friendship_check | No | ||
| with_refresh | No | ||
| typescript | No |