New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

bd-auth

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bd-auth

// import bdauth from 'bdauth'

latest
npmnpm
Version
0.0.59
Version published
Weekly downloads
68
-4.23%
Maintainers
0
Weekly downloads
 
Created
Source

// import bdauth from 'bdauth'

功能列表

项目测试:pnpm run dev

加密、解密库
获取用户集成信息
集成newrabbit库
---完善中

import bdauth from 'bd-auth' // 集成测试 默認返回用戶信息 const iport = '' const code = 'cjCode' const appid = 'a2769339' const appkey = '7E3A91ED5415C9A0EA2B8DE7051E965C' // 初始化集成库 let bdsdk = bdauth.init(iport, code, appid, appkey)

getTicketAndUser 项目中调用此方法获取用户及 ticket

// 获取用户 ticket 及用户信息 async loginToken() { let p1 = await getTicketAndUser() // 存储 ticket 及用户信息 setCookieKey('ticket', p1.ticket) this.setUser(p1.user) }, setUser(user) { this.user = user this.name = user.name this.userid = user.login this.login = user.login

升级 bd-auth (0.0.48) 添加了 uuid(长度) 方法生成 guid

FAQs

Package last updated on 03 Dec 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