Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bnfe/lark-utils

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bnfe/lark-utils

lark-utils

  • 1.0.13
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@bnfe/lark-utils

这是一个在飞书移动端网页内环境下的utils包

安装

pnpm install @bnfe/lark-utils -S

引入

import larkSDK from "@bnfe/lark-utils";

使用

飞书授权登录-免登

飞书应用免登流程

/**
 * 飞书授权登录-免登
 * @param {string} appId 飞书应用的appId
 * @param {string} env 环境变量 dev/prod
 * @return Promise
 */
larkSDK.baseLogin(appId, env);

飞书授权登录-鉴权

飞书鉴权调用 JSAPI

/**
 * 飞书授权登录-鉴权
 * @param {string} appId 飞书应用的appId
 * @param {string} env 环境变量 dev/prod
 * @param {string[]} jsApiList 需要授权的接口
 * @return Promise
 */
larkSDK.login(appId, env, jsApiList);

飞书扫码登录

飞书二维码 SDK 接入文档

/**
 * @param {Record<string, any>}
 * @param appId 应用id
 * @param id 元素id(默认lark-code)
 * @param width 二维码宽度(默认260)
 * @param height 二维码高度(默认260)
 */
larkSDK.getQRCode({appId: "xxx"})

Keywords

FAQs

Package last updated on 17 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc