@propelauth/nextjs 0.0.120 → 0.0.122

Sign up to get free protection for your applications and to get access to all the features.
@@ -173,6 +173,7 @@ declare class ConfigurationException extends Error {
173
173
  }
174
174
 
175
175
  declare const getPropelAuthApis: () => {
176
+ fetchTokenVerificationMetadata: () => Promise<_propelauth_node_apis.TokenVerificationMetadata>;
176
177
  fetchUserMetadataByUserId: (userId: string, includeOrgs?: boolean | undefined) => Promise<_propelauth_node_apis.UserMetadata | null>;
177
178
  fetchUserMetadataByEmail: (email: string, includeOrgs?: boolean | undefined) => Promise<_propelauth_node_apis.UserMetadata | null>;
178
179
  fetchUserMetadataByUsername: (username: string, includeOrgs?: boolean | undefined) => Promise<_propelauth_node_apis.UserMetadata | null>;
@@ -189,29 +190,24 @@ declare const getPropelAuthApis: () => {
189
190
  fetchOrgByQuery: (orgQuery: _propelauth_node_apis.OrgQuery) => Promise<_propelauth_node_apis.OrgQueryResponse>;
190
191
  fetchUsersByQuery: (usersQuery: _propelauth_node_apis.UsersQuery) => Promise<_propelauth_node_apis.UsersPagedResponse>;
191
192
  fetchUsersInOrg: (usersInOrgQuery: _propelauth_node_apis.UsersInOrgQuery) => Promise<_propelauth_node_apis.UsersPagedResponse>;
192
- createUser: (createUserRequest: _propelauth_node_apis.CreateUserRequest) => Promise<_propelauth_node_apis.User>;
193
+ fetchUserSignupQueryParams: (userId: string) => Promise<_propelauth_node_apis.UserSignupQueryParams | null>;
194
+ createUser: (createUserRequest: _propelauth_node_apis.CreateUserRequest) => Promise<_propelauth_node_apis.CreatedUser>;
193
195
  updateUserMetadata: (userId: string, updateUserMetadataRequest: _propelauth_node_apis.UpdateUserMetadataRequest) => Promise<boolean>;
194
196
  updateUserEmail: (userId: string, updateUserEmailRequest: _propelauth_node_apis.UpdateUserEmailRequest) => Promise<boolean>;
195
197
  updateUserPassword: (userId: string, updateUserPasswordRequest: _propelauth_node_apis.UpdateUserPasswordRequest) => Promise<boolean>;
198
+ clearUserPassword: (userId: string) => Promise<boolean>;
196
199
  createMagicLink: (createMagicLinkRequest: _propelauth_node_apis.CreateMagicLinkRequest) => Promise<_propelauth_node_apis.MagicLink>;
197
200
  createAccessToken: (createAccessTokenRequest: _propelauth_node_apis.CreateAccessTokenRequest) => Promise<_propelauth_node_apis.AccessToken>;
198
- migrateUserFromExternalSource: (migrateUserFromExternalSourceRequest: _propelauth_node_apis.MigrateUserFromExternalSourceRequest) => Promise<_propelauth_node_apis.User>;
201
+ migrateUserFromExternalSource: (migrateUserFromExternalSourceRequest: _propelauth_node_apis.MigrateUserFromExternalSourceRequest) => Promise<_propelauth_node_apis.CreatedUser>;
199
202
  deleteUser: (userId: string) => Promise<boolean>;
200
203
  disableUser: (userId: string) => Promise<boolean>;
201
204
  enableUser: (userId: string) => Promise<boolean>;
202
205
  disableUser2fa: (userId: string) => Promise<boolean>;
203
206
  enableUserCanCreateOrgs: (userId: string) => Promise<boolean>;
204
207
  disableUserCanCreateOrgs: (userId: string) => Promise<boolean>;
205
- createOrg: (createOrgRequest: _propelauth_node_apis.CreateOrgRequest) => Promise<{
206
- orgId: string;
207
- name: string;
208
- }>;
208
+ createOrg: (createOrgRequest: _propelauth_node_apis.CreateOrgRequest) => Promise<_propelauth_node_apis.CreatedOrg>;
209
209
  addUserToOrg: (addUserToOrgRequest: _propelauth_node_apis.AddUserToOrgRequest) => Promise<boolean>;
210
- changeUserRoleInOrg: (changeUserRoleInOrgRequest: {
211
- userId: string;
212
- orgId: string;
213
- role: string;
214
- }) => Promise<boolean>;
210
+ changeUserRoleInOrg: (changeUserRoleInOrgRequest: _propelauth_node_apis.ChangeUserRoleInOrgRequest) => Promise<boolean>;
215
211
  removeUserFromOrg: (removeUserFromOrgRequest: _propelauth_node_apis.RemoveUserFromOrgRequest) => Promise<boolean>;
216
212
  updateOrg: (updateOrgRequest: _propelauth_node_apis.UpdateOrgRequest) => Promise<boolean>;
217
213
  deleteOrg: (orgId: string) => Promise<boolean>;
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "name": "@propelauth/nextjs",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "exports": {
5
5
  "./server": {
6
6
  "browser": "./dist/server/index.mjs",
7
7
  "import": "./dist/server/index.mjs",
8
8
  "require": "./dist/server/index.js",
9
- "default": "./dist/server/index.mjs",
10
- "types": "./dist/server/index.d.ts"
9
+ "types": "./dist/server/index.d.ts",
10
+ "default": "./dist/server/index.mjs"
11
11
  },
12
12
  "./server/app-router": {
13
13
  "browser": "./dist/server/app-router/index.mjs",
14
14
  "import": "./dist/server/app-router/index.mjs",
15
15
  "require": "./dist/server/app-router/index.js",
16
- "default": "./dist/server/app-router/index.mjs",
17
- "types": "./dist/server/app-router/index.d.ts"
16
+ "types": "./dist/server/app-router/index.d.ts",
17
+ "default": "./dist/server/app-router/index.mjs"
18
18
  },
19
19
  "./server/pages": {
20
20
  "browser": "./dist/server/pages/index.mjs",
21
21
  "import": "./dist/server/pages/index.mjs",
22
22
  "require": "./dist/server/pages/index.js",
23
- "default": "./dist/server/pages/index.mjs",
24
- "types": "./dist/server/pages/index.d.ts"
23
+ "types": "./dist/server/pages/index.d.ts",
24
+ "default": "./dist/server/pages/index.mjs"
25
25
  },
26
26
  "./client": {
27
27
  "browser": "./dist/client/index.mjs",
28
28
  "import": "./dist/client/index.mjs",
29
29
  "require": "./dist/client/index.js",
30
- "default": "./dist/client/index.mjs",
31
- "types": "./dist/client/index.d.ts"
30
+ "types": "./dist/client/index.d.ts",
31
+ "default": "./dist/client/index.mjs"
32
32
  },
33
33
  "./package.json": "./package.json"
34
34
  },
@@ -68,7 +68,7 @@
68
68
  "react": "^18.2.0"
69
69
  },
70
70
  "dependencies": {
71
- "@propelauth/node-apis": "^2.1.4",
71
+ "@propelauth/node-apis": "^2.1.8",
72
72
  "jose": "^4.15.5"
73
73
  }
74
74
  }