1.0.4 • Published 12 months ago

line-ts v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
12 months ago

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
1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago