Skip to content

Commit

Permalink
fix: github token verification
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardomilv3 committed Jul 28, 2024
1 parent 6a8c1cf commit 0c57f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/contexts/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const AuthProvider = ({ children }: { children: JSX.Element }) => {

useEffect(() => {
const code = router?.query?.code;
if (code && provider === 'github') {
if (code && provider === 'github' && !token) {
signInWithGithub(code as string);
}
}, [provider, router?.query?.code, signInWithGithub]);
Expand Down

0 comments on commit 0c57f9f

Please sign in to comment.