Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
profiledataservice
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasEbbinghaus25 committed Jun 10, 2024
1 parent 4b29797 commit fc8cfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/web/src/services/ProfileDataService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const fetchNewToken = async (): Promise<void> => {

if (response.ok) {
const data = await response.json();
const newToken = data.token; // Annahme: Die Antwort enthält den neuen Token im Feld "token"
const newToken = data; // Annahme: Die Antwort enthält den neuen Token im Feld "token"
localStorage.setItem('token', newToken); // Speichern Sie den Token im localStorage
console.log('New token fetched and saved successfully');
} else {
Expand Down

0 comments on commit fc8cfb2

Please sign in to comment.