@classmethod/lifft-up
v0.0.8
Published
![CI status](https://github.com/classmethod/lifft-up/actions/workflows/create-release.yaml/badge.svg)
Downloads
98
Keywords
Readme
lifft-up
Let's lift up your LIFF apps 🏋️
Feature collections to realize your creativity.
- authorizer with OAuth provided by LINE Corp
Getting Started
cd /your/working/dir
npm install @classmethod/lifft-up
// or
yarn add @classmethod/lifft-up
Usage
Authentication by IDToken.
import * as lifftUp from '@classmethod/lifft-up'
(async () => {
// https://developers.line.biz/en/reference/liff/#get-id-token
const idToken = <your id token>
// Specify Liff Channel ID.
const clientId = <your liff channel id>
// The IDToken payload will be returned.
const payload = await lifftUp.authorizer(idToken, clientId)
})()