Skip to content

Commit

Permalink
Update useReLogin.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandostaler authored Sep 9, 2024
1 parent 8f1e484 commit 4e0b863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/AppWriteAPI/useReLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const useReLogin = () => {

const reLogin = (reason: any) => {
console.log(reason);
logout();
return sleep(1000).then(() => {
logout();
login();
});
}
return reLogin;
};

export default useReLogin;
export default useReLogin;

0 comments on commit 4e0b863

Please sign in to comment.