Skip to content

Commit

Permalink
エラー解消
Browse files Browse the repository at this point in the history
  • Loading branch information
Nah0012 committed Jan 17, 2024
1 parent eeeccbd commit 6347d8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ export function setUserToLocalStorage(user?: User) {
if (user?.uid) {
localStorage.setItem("userId", user.uid);
localStorage.setItem("userName", user.displayName || "");
localStorage.setItem("apiKey", user.apiKey || "");
}
}

export function clearUserInLocalStorage() {
localStorage.removeItem("userId");
localStorage.removeItem("userName");
localStorage.removeItem("apiKey");
}

0 comments on commit 6347d8b

Please sign in to comment.