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

Commit

Permalink
register
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasEbbinghaus25 committed Jun 12, 2024
1 parent 01a906b commit d7840a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/web/src/services/AuthService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const register = async (username: string, email: string, password: string
};

export const saveUserDataToLocalStorage = (data: { accountId: number; userId: number; username: string; accessToken: string; }): void => {
localStorage.setItem('accountId', "" + data.accountId.toString());
localStorage.setItem('accountId', data.accountId.toString());
localStorage.setItem('userId', data.userId.toString());
localStorage.setItem('username', data.username);
localStorage.setItem('token', data.accessToken);
Expand Down

0 comments on commit d7840a0

Please sign in to comment.