🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@dingrtc/token-generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dingrtc/token-generator

dingRTC token generator

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
21
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

DingRTC token generator SDK

阿里云音视频通信dingRTC token 生成器,为加入频道生成复合规则的token。

Installation

You can install it as dependency with npm/cnpm or yarn.

$ # save into package.json dependencies with -S
$ npm install @dingrtc/token-generator -S

$ # you can use cnpm for fast install
$ cnpm install @dingrtc/token-generator -S

$ # use yarn for install
$ yarn add @dingrtc/token-generator

二、快速应用

  • 生成token
const { produce } = require('@dingrtc/token-generator');

/**
 * 传递appId, channelId, userId, appKey
 */
const token = produce({
  appId: 'xxxx',
  channelId: 'xxxx',
  userId: 'xxxx',
  appKey: 'xxxx',
});
console.log(token)

FAQs

Package last updated on 07 Jan 2025

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