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

@bnfe/lark-utils

Package Overview
Dependencies
Maintainers
5
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.3
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
5
Weekly downloads
 
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);

也可以在window上获取larkSDK的方法

Keywords

FAQs

Package last updated on 07 Nov 2023

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