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

agora-access-token

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agora-access-token - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

index.d.ts

3

package.json
{
"name": "agora-access-token",
"version": "2.0.2",
"version": "2.0.3",
"description": "",

@@ -10,2 +10,3 @@ "homepage": "https://github.com/AgoraIO/Tools/tree/master/DynamicKey/AgoraDynamicKey/nodejs",

},
"types": "index.d.ts",
"author": "",

@@ -12,0 +13,0 @@ "license": "ISC",

@@ -15,4 +15,2 @@ //var fs = require('fs');

var expirationTimeInSeconds = 3600
var currentTimestamp = Math.floor(Date.now() / 1000)
var privilegeExpiredTs = currentTimestamp + expirationTimeInSeconds
var role = RtcRole.PUBLISHER

@@ -27,2 +25,4 @@

var generateRtcToken = function(req, resp) {
var currentTimestamp = Math.floor(Date.now() / 1000)
var privilegeExpiredTs = currentTimestamp + expirationTimeInSeconds
var channelName = req.query.channelName;

@@ -44,2 +44,4 @@ // use 0 if uid is not specified

var generateRtmToken = function(req, resp) {
var currentTimestamp = Math.floor(Date.now() / 1000)
var privilegeExpiredTs = currentTimestamp + expirationTimeInSeconds
var account = req.query.account;

@@ -46,0 +48,0 @@ if (!account) {

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