ADD:added decode jwt token and automated login to dashboard after login

This commit is contained in:
hwinkel
2025-05-21 20:12:50 +02:00
parent a330291456
commit 4158b87576
6 changed files with 44 additions and 6 deletions

View File

@@ -17,6 +17,7 @@
"@types/react": "^19.1.4",
"@types/react-dom": "^19.1.5",
"axios": "^1.9.0",
"jwt-decode": "^4.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router-dom": "^7.6.0",
@@ -10257,6 +10258,14 @@
"node": ">=4.0"
}
},
"node_modules/jwt-decode": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz",
"integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==",
"engines": {
"node": ">=18"
}
},
"node_modules/keyv": {
"version": "4.5.4",
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",