Skip to content

Commit

Permalink
rotas por tipo de usuário
Browse files Browse the repository at this point in the history
  • Loading branch information
yaskisoba committed Dec 13, 2023
1 parent e39bdda commit 65b168a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/pages/Signin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ const Signin = () => {

if (response.data.accessToken) {
sessionStorage.setItem("accessToken", response.data.accessToken);
sessionStorage.setItem("user", JSON.stringify({email, senha}));
sessionStorage.setItem("superuser", response.data.superuser);

signin();

console.log("oi")
console.log( sessionStorage.getItem("superuser"))
console.log(isSuperUser())
navigate("/home");


Expand Down

0 comments on commit 65b168a

Please sign in to comment.