initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
const getToken = () => {
|
||||
const token = Cookies.get('token')
|
||||
return token
|
||||
}
|
||||
|
||||
const setToken = (token: String) => {
|
||||
Cookies.set('token', token)
|
||||
}
|
||||
|
||||
const resetToken = (token: String) => {
|
||||
Cookies.set('token', "")
|
||||
}
|
||||
|
||||
export { getToken, setToken, resetToken }
|
||||
Reference in New Issue
Block a user