@propelauth/nextjs 0.0.121 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@propelauth/nextjs",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "exports": {
5
5
  "./server": {
6
6
  "browser": "./dist/server/index.mjs",
@@ -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
  }