Skip to content

Commit

Permalink
chore: fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Apr 13, 2024
1 parent 4f345a8 commit 254531f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web/src/pages/oauth2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const OAuth2 = () => {
const query = new URLSearchParams(location.search);
const lineId = query.get('id');

const fetchData = async () => {
const checkUserExist = async () => {
try {
console.log(`${apiUrl}/users?id=${lineId}`);
const response = await fetch(`${apiUrl}/user?id=${lineId}`);
Expand All @@ -24,9 +24,12 @@ const OAuth2 = () => {
}
};

const authGoogle = async () => {};

useEffect(() => {
fetchData();
}, [fetchData]);
checkUserExist();
authGoogle();
}, [checkUserExist]);

return <></>;
};
Expand Down

0 comments on commit 254531f

Please sign in to comment.