Skip to content

Commit

Permalink
Merge pull request #54 from openhacku-team-a/hotfix-shion-1019
Browse files Browse the repository at this point in the history
hotfix shion 1019
  • Loading branch information
Shion1305 authored Mar 16, 2024
2 parents f713fd2 + 81098f6 commit 1829d00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useFetchMilestone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useFetchMilestone = () => {
const create = async (
req: MilestoneCreateRequest,
): Promise<MilestoneCreateResponse> => {
return await client.post("/apu/v1/milestone", req).then((resp) => {
return await client.post("/api/v1/milestone", req).then((resp) => {
if (resp.unauthorized) {
throw new Error("unauthorized");
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/firebase/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const login = (): void => {
signInWithPopup(auth, provider)
.then((result) => {
const credential: any = GoogleAuthProvider.credentialFromResult(result);
const token = credential.accessToken;
const token = credential.idToken;
const user = result.user;
window.localStorage.setItem("token", token);
window.localStorage.setItem("refresh-token", user.refreshToken);
Expand Down

0 comments on commit 1829d00

Please sign in to comment.