Skip to content

Commit

Permalink
Push user-service
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsalvi committed Oct 29, 2023
1 parent d6d6281 commit 902a0ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/lib/user-service.ts
@@ -0,0 +1,7 @@
export function getUser() {
return JSON.parse(localStorage.getItem("user"))
}

export function setUser(user) {
localStorage.setItem("user", JSON.stringify(user));
}

0 comments on commit 902a0ab

Please sign in to comment.