Skip to content

Commit d27c423

Browse files
committed
added setInterval to constantly check for OAuth
1 parent d8748d0 commit d27c423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/components/login/SignIn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const SignIn: React.FC<LoginInt & RouteComponentProps> = props => {
8686
const [invalidPass, setInvalidPass] = useState(false);
8787

8888
useEffect(() => {
89-
const githubCookie = setTimeout(() => {
89+
const githubCookie = setInterval(() => {
9090
window.api?.setCookie();
9191
window.api?.getCookie(cookie => {
9292
// if a cookie exists, set localstorage item with cookie data, clear interval, go back to '/' route to load app

0 commit comments

Comments
 (0)