Skip to content

Commit

Permalink
fix: Rename jwtToken cookie (#1876)
Browse files Browse the repository at this point in the history
## Description:
This PR renames the cookie used by the emui to `_kurtosis_jwt_token`.
This change must not be deployed before
kurtosis-tech/kurtosis-cloud-frontend#69.

## Is this change user facing?
YES

## References (if applicable):
*
https://sageroomworkspace.slack.com/archives/C05DZ4UABDZ/p1701362420039339
  • Loading branch information
Dartoxian authored Dec 5, 2023
1 parent eeb304b commit 3b13372
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const KurtosisClientProvider = ({ children }: PropsWithChildren) => {
throw Error(`Port ${port} is not a number.`);
}

const jwtToken = Cookies.get("kurtosis");
const jwtToken = Cookies.get("_kurtosis_jwt_token");

if (isDefined(jwtToken)) {
newClient = new AuthenticatedKurtosisClient(
Expand Down
6 changes: 3 additions & 3 deletions engine/server/webapp/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "./static/js/main.894d68e3.js",
"main.js": "./static/js/main.76d5fae1.js",
"index.html": "./index.html",
"main.894d68e3.js.map": "./static/js/main.894d68e3.js.map"
"main.76d5fae1.js.map": "./static/js/main.76d5fae1.js.map"
},
"entrypoints": [
"static/js/main.894d68e3.js"
"static/js/main.76d5fae1.js"
]
}
2 changes: 1 addition & 1 deletion engine/server/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.894d68e3.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.76d5fae1.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 3 additions & 0 deletions engine/server/webapp/static/js/main.76d5fae1.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions engine/server/webapp/static/js/main.894d68e3.js

This file was deleted.

0 comments on commit 3b13372

Please sign in to comment.