Installation

Installing with a Package Manager

It can be installed as an npm package.

npm install @wepin/login-js

Once the installation is complete, initialize the WepinLogin instance using the app ID and app key assigned after registering the app. This will enable the use of WepinLogin.

// 1. Import the package
import { WepinLogin } from '@wepin/login-js'

// 2. Initialization
const wepinLogin = new WepinLogin({
    appId: 'your-wepin-app-id',
    appKey: 'your-wepin-api-key',
})

Last updated

Was this helpful?