third-login
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

三方登录

获取微信登录二维码(内嵌式)GetWechatLoginCode

参数说明

  • htmlId(必须):对应页面中需要放二维码的位置, 例
  • appid(必须): 应用唯一标识
  • redirectUri(必须): 重定向地址
  • cssHref(可选): 自定义样式链接

使用

在需要展示微信登录二维码的地方调用该方法即可

import { GetWechatLoginCode } from 'third-login';
const params = {
  htmlId: 'bind-qrcode',
  appid: 'xxxxxxxxxx',
  redirectUri: `${window.location.protocol}//${window.location.host}/third-login-callback?isLogin=true`,
};
GetWechatLoginCode(params);

Readme

Keywords

none

Package Sidebar

Install

npm i third-login

Weekly Downloads

16

Version

1.0.1

License

ISC

Unpacked Size

5.25 kB

Total Files

11

Last publish

Collaborators

  • yulingc