2.0.1 • Published 4 months ago

line-ts v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 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
2.0.1

4 months ago

2.0.0

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago