Skip to content

Commit dcfb335

Browse files
author
Ives van Hoorne
committed
Delete signedIn cookie actively when not signed in
1 parent 4e06406 commit dcfb335

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"build": "yarn build:deps && yarn build:prod",
8-
"build:prod": "lerna run build --scope app --scope homepage --stream && gulp",
8+
"build:prod": "lerna run build --scope homepage --stream && lerna run build --scope app --stream && gulp",
99
"build:clean": "lerna run build:clean --scope app --scope homepage && rimraf www",
1010
"build:deps": "lerna run build:dev --scope codesandbox-api --scope codesandbox-browserfs",
1111
"start": "yarn build:deps && lerna run start --scope app --stream",

packages/app/src/app/store/factories.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ export function withLoadApp(continueSequence) {
159159
continueSequence,
160160
]),
161161
],
162-
false: continueSequence,
162+
false: [
163+
actions.removeJwtFromStorage, // To delete the signedIn cookie as well, to be sure
164+
continueSequence,
165+
],
163166
},
164167
set(state`hasLoadedApp`, true),
165168
set(state`isAuthenticating`, false),

0 commit comments

Comments
 (0)