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

@plasmicapp/auth-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasmicapp/auth-api - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

47

dist/index.d.ts

@@ -1,1 +0,46 @@

export * from './api';
export declare const createPlasmicAppUser: typeof ensurePlasmicAppUser;
export declare function ensurePlasmicAppUser(opts: {
host?: string;
appSecret: string;
roleId?: string;
} & UserIdentifier): Promise<PlasmicUserResult>;
export declare function getPlasmicAppUser(opts: {
host?: string;
appId: string;
codeVerifier: string;
code: string;
}): Promise<PlasmicUserResult>;
export declare function getPlasmicAppUserFromToken(opts: {
host?: string;
token: string;
}): Promise<PlasmicUserResult>;
export declare interface PlasmicUser {
email: string;
properties: Record<string, unknown> | null;
roleId: string;
roleName: string;
roleIds: string[];
roleNames: string[];
}
export declare type PlasmicUserResult = {
user: null;
token: null;
error: Error;
} | {
user: PlasmicUser;
token: string;
error?: never;
};
declare type UserIdentifier = {
email: string;
} | {
externalId: string;
};
export { }

4

package.json
{
"version": "0.0.14",
"version": "0.0.15",
"license": "MIT",

@@ -44,3 +44,3 @@ "types": "./dist/index.d.ts",

},
"gitHead": "1a6ba175f18781f4a27f068d9b519597130be9be"
"gitHead": "48a2877c3dc093d101508fcdde2fd213055fdab9"
}
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