@opensecret/react 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -2
- package/dist/opensecret-react.es.js +198 -197
- package/dist/opensecret-react.umd.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -768,6 +768,7 @@ export declare type OpenSecretDeveloperContextType = {
|
|
|
768
768
|
* Registers a new developer account
|
|
769
769
|
* @param email - Developer's email address
|
|
770
770
|
* @param password - Developer's password
|
|
771
|
+
* @param invite_code - Required invitation code in UUID format
|
|
771
772
|
* @param name - Optional developer name
|
|
772
773
|
* @returns A promise that resolves to the login response with access and refresh tokens
|
|
773
774
|
*
|
|
@@ -777,7 +778,7 @@ export declare type OpenSecretDeveloperContextType = {
|
|
|
777
778
|
* - Updates the developer state with new user information
|
|
778
779
|
* - Throws an error if account creation fails
|
|
779
780
|
*/
|
|
780
|
-
signUp: (email: string, password: string, name?: string) => Promise<platformApi.PlatformLoginResponse>;
|
|
781
|
+
signUp: (email: string, password: string, invite_code: string, name?: string) => Promise<platformApi.PlatformLoginResponse>;
|
|
781
782
|
/**
|
|
782
783
|
* Signs out the current developer by removing authentication tokens
|
|
783
784
|
*
|
|
@@ -1188,7 +1189,15 @@ declare type PlatformRefreshResponse = {
|
|
|
1188
1189
|
*/
|
|
1189
1190
|
declare function platformRefreshToken(): Promise<PlatformRefreshResponse>;
|
|
1190
1191
|
|
|
1191
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* Registers a new platform developer account
|
|
1194
|
+
* @param email Developer's email address
|
|
1195
|
+
* @param password Developer's password
|
|
1196
|
+
* @param invite_code Required invitation code in UUID format
|
|
1197
|
+
* @param name Optional developer name
|
|
1198
|
+
* @returns A promise that resolves to the login response with access and refresh tokens
|
|
1199
|
+
*/
|
|
1200
|
+
declare function platformRegister(email: string, password: string, invite_code: string, name?: string): Promise<PlatformLoginResponse>;
|
|
1192
1201
|
|
|
1193
1202
|
declare type PlatformUser = {
|
|
1194
1203
|
id: string;
|