()
| 3 | export const tokenKey = "brewToken"; |
| 4 | |
| 5 | export function getAuthToken() { |
| 6 | const token = cookie.load(tokenKey); |
| 7 | // if (!token) { |
| 8 | // throw new Error("No Token"); |
| 9 | // } |
| 10 | return token; |
| 11 | } |
| 12 | |
| 13 | export function removeAuthToken() { |
| 14 | cookie.remove(tokenKey, { path: "/" }); |
no outgoing calls
no test coverage detected