@stackframe/stack 2.5.0 → 2.5.1

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.
@@ -373,10 +373,10 @@ type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends s
373
373
  resetPassword(options: {
374
374
  code: string;
375
375
  password: string;
376
- }): Promise<KnownErrors["PasswordResetError"] | void>;
377
- verifyPasswordResetCode(code: string): Promise<KnownErrors["PasswordResetCodeError"] | void>;
378
- verifyEmail(code: string): Promise<KnownErrors["EmailVerificationError"] | void>;
379
- signInWithMagicLink(code: string): Promise<KnownErrors["MagicLinkError"] | void>;
376
+ }): Promise<KnownErrors["VerificationCodeError"] | void>;
377
+ verifyPasswordResetCode(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
378
+ verifyEmail(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
379
+ signInWithMagicLink(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
380
  redirectToOAuthCallback(): Promise<void>;
381
381
  useUser(options: GetUserOptions<HasTokenStore> & {
382
382
  or: 'redirect';
@@ -373,10 +373,10 @@ type StackClientApp<HasTokenStore extends boolean = boolean, ProjectId extends s
373
373
  resetPassword(options: {
374
374
  code: string;
375
375
  password: string;
376
- }): Promise<KnownErrors["PasswordResetError"] | void>;
377
- verifyPasswordResetCode(code: string): Promise<KnownErrors["PasswordResetCodeError"] | void>;
378
- verifyEmail(code: string): Promise<KnownErrors["EmailVerificationError"] | void>;
379
- signInWithMagicLink(code: string): Promise<KnownErrors["MagicLinkError"] | void>;
376
+ }): Promise<KnownErrors["VerificationCodeError"] | void>;
377
+ verifyPasswordResetCode(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
378
+ verifyEmail(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
379
+ signInWithMagicLink(code: string): Promise<KnownErrors["VerificationCodeError"] | void>;
380
380
  redirectToOAuthCallback(): Promise<void>;
381
381
  useUser(options: GetUserOptions<HasTokenStore> & {
382
382
  or: 'redirect';
@@ -59,7 +59,7 @@ var cookie = __toESM(require("cookie"));
59
59
  var import_sessions = require("@stackframe/stack-shared/dist/sessions");
60
60
  var import_strings = require("@stackframe/stack-shared/dist/utils/strings");
61
61
  var NextNavigation = (0, import_compile_time.scrambleDuringCompileTime)(NextNavigationUnscrambled);
62
- var clientVersion = "js @stackframe/stack@2.5.0";
62
+ var clientVersion = "js @stackframe/stack@2.5.1";
63
63
  function permissionDefinitionScopeToType(scope) {
64
64
  return { "any-team": "team", "specific-team": "team", "global": "global" }[scope.type];
65
65
  }