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

@cord-sdk/server

Package Overview
Dependencies
Maintainers
7
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cord-sdk/server - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

23

dist/mjs/index.d.ts

@@ -1,23 +0,4 @@

export declare type PlatformUserVariables = {
email: string;
name?: string;
short_name?: string;
profile_picture_url?: string;
status?: 'active' | 'deleted';
first_name?: string;
last_name?: string;
};
export declare type PlatformOrganizationVariables = {
name: string;
status?: 'active' | 'deleted';
members?: Array<string | number>;
};
export declare type ClientAuthTokenData = {
app_id: string;
user_id: string;
organization_id: string;
user_details?: PlatformUserVariables;
organization_details?: PlatformOrganizationVariables;
};
import type { ClientAuthTokenData } from '@cord-sdk/api-types';
export type { ClientAuthTokenData };
export declare function getClientAuthToken(app_id: string, app_secret: string, payload: Omit<ClientAuthTokenData, 'app_id'>): string;
export declare function getServerAuthToken(app_id: string, app_secret: string): string;

3

package.json
{
"name": "@cord-sdk/server",
"description": "Server-side portion of the Cord SDK",
"version": "0.0.21",
"version": "0.0.22",
"homepage": "https://docs.cord.com/",

@@ -25,2 +25,3 @@ "license": "MIT",

"devDependencies": {
"@cord-sdk/api-types": "0.0.22",
"@types/jsonwebtoken": "^8.5.8",

@@ -27,0 +28,0 @@ "rollup": "^2.70.1",

@@ -18,2 +18,2 @@ <img width="100%" src="https://docs.cord.com/assets/cord-sdk-banner.svg"></img>

You can find the documentation [on the Cord Developer Documentation web site](https://docs.cord.com/server/node/).
You can find the documentation [on the Cord Developer Documentation web site](https://docs.cord.com/reference/server-libraries/).
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