@cord-sdk/server
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -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; |
{ | ||
"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/). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4448
5
39