@plasmicapp/auth-api
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -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 { } |
{ | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"license": "MIT", | ||
@@ -44,3 +44,3 @@ "types": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "1a6ba175f18781f4a27f068d9b519597130be9be" | ||
"gitHead": "48a2877c3dc093d101508fcdde2fd213055fdab9" | ||
} |
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
25428
9
431