Remove jwt references

This commit is contained in:
jwu-fisker
2021-01-07 18:57:41 -08:00
parent a47e3536a3
commit 64590934b6
3 changed files with 5 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ export const UserProvider = ({ children }) => {
const token = JSON.parse(sessionStorage.getItem("token"));
if (!token) return;
const { accessToken: { jwtToken }} = token;
const verifyToken = async (jwt) => {
const result = await auth.verify(jwt);
const verifyToken = async (accessToken) => {
const result = await auth.verify(accessToken);
if (result.authenticated) {
setToken(token);
} else {