From 50b2b672ebaf93084e325071ff1d6fb480f2aca8 Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Sun, 9 Jun 2024 18:08:10 +0200 Subject: [PATCH] Signout now works correctly with old cookies --- README.md | 2 ++ packages/stack/src/lib/stack-app.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 697cb13c7..d7eafac69 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ pnpm run prisma:server migrate reset pnpm run dev ``` +You can now open the dashboard at [http://localhost:8101](http://localhost:8101), demo on port 8103, and docs on port 8104. + Your IDE may show an error on all `@stackframe/XYZ` imports. To fix this, simply restart the TypeScript language server; for example, in VSCode you can open the command palette (Ctrl+Shift+P) and run `Developer: Reload Window` or `TypeScript: Restart TS server`. You can also open Prisma Studio to see the database interface and edit data directly: diff --git a/packages/stack/src/lib/stack-app.ts b/packages/stack/src/lib/stack-app.ts index f24ce35cf..d2d7323ba 100644 --- a/packages/stack/src/lib/stack-app.ts +++ b/packages/stack/src/lib/stack-app.ts @@ -1,6 +1,6 @@ import React, { use, useCallback, useMemo } from "react"; import { KnownError, KnownErrors, OAuthProviderConfigJson, ServerUserJson, StackAdminInterface, StackClientInterface, StackServerInterface } from "@stackframe/stack-shared"; -import { getCookie, setOrDeleteCookie } from "./cookie"; +import { deleteCookie, getCookie, setOrDeleteCookie } from "./cookie"; import { StackAssertionError, throwErr } from "@stackframe/stack-shared/dist/utils/errors"; import { generateUuid } from "@stackframe/stack-shared/dist/utils/uuids"; import { AsyncResult, Result } from "@stackframe/stack-shared/dist/utils/results"; @@ -440,6 +440,7 @@ class _StackClientAppImpl