Skip to content

Commit

Permalink
fix: local forage key
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-vm committed Oct 23, 2023
1 parent d41fa88 commit 6d64c44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import localforage from "localforage";
import React, {
type ReactNode,
useCallback,
Expand All @@ -9,6 +8,7 @@ import React, {
} from "react";
import { useNavigate } from "react-router-dom";
import { toast } from "react-toastify";
import localForage from "services/config/localForage.config";
import { createCustomContext } from "utils";

import { postAuthLogin, postAuthRegister } from "./api";
Expand Down Expand Up @@ -54,7 +54,7 @@ export const AuthenticationProvider: React.FC<{ children: ReactNode }> = ({

const logout = useCallback(() => {
localStorage.clear();
void localforage.clear();
void localForage.clear();
isLogged.current = false;
setStore((store) => ({
...store,
Expand Down

0 comments on commit 6d64c44

Please sign in to comment.