line-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

LINE TS

npm i line-ts

LINE TypeScript SDK.

Typescript helper functions for LINE

Functions:

import { getLineLoginUrl } from 'line-ts'

const payload = { client_id, redirect_uri }
// redirect_uri can include 'https://' and it will be formatted to LINE's requirements

const result = getLineLoginUrl(payload)

// LINE login URL with correct query
// result looks like:
`https://access.line.me/oauth2/v2.1/authorize${query}`
import { getParamsFromLoginCallback } from 'line-ts'

const payload = callbackUrlTriggered
// eg. https://client.example.org/cb?code=abcd1234&state=0987

const result = getParamsFromLoginCallback(payload)

// result looks like:
{ code: 'abcd1234', state: '0987' }

For more information, click on the function links where you can see further documentation & types.

NodeJS helper functions for LINE

Check line-node for nodeJS helper functions including:

  • issueAccessToken
  • decodeIdToken

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i line-ts

    Weekly Downloads

    232

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    17.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • mesqueeb