Changeset a26f6a1 for frontend/src/Auth
- Timestamp:
- 08/09/22 16:09:32 (2 years ago)
- Branches:
- master
- Children:
- a569b7c
- Parents:
- 899b19d
- Location:
- frontend/src/Auth
- Files:
-
- 4 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Auth/auth.js
r899b19d ra26f6a1 4 4 import { UserOutlined, LockOutlined } from '@ant-design/icons'; 5 5 import axios from "axios"; 6 import '. /App.css'7 import env from ". /env";6 import '../App.css' 7 import env from "../env"; 8 8 9 9 const setAuthCookie = (token) => { 10 sessionStorage.setItem('Auth','Bearer '+token)10 localStorage.setItem('Auth','Bearer '+token) 11 11 } 12 12 … … 103 103 setUser(res.data) 104 104 setLoading(false) 105 history( res.data.isAdmin ? '/dashboard' : '/')105 history('/confirm-email') 106 106 }) 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.