Line Login

Contents

The function login, logs out, acquires, verifies, and refreshes the access token. The version of LineSDK you are using is as follows.

https://github.com/nrikiji/cordova-line-login-plugin

Ionic Line Login插件的安装(Installation)

ionic cordova plugin add cordova-line-login-plugin npm install @ionic-native/line-login

Ionic Line Login插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Line Login插件的用法(Usage)

import { LineLogin } from '@ionic-native/line-login';


constructor(private lineLogin: LineLogin) { }

...


this.lineLogin.initialize({ channel_id: "xxxxxxxxxx" })

this.lineLogin.login()
  .then(result => console.log(result))
  .catch(error => console.log(error))