Skip to content

Commit

Permalink
fixup! App CheckのtokenをAPI使用時に取得するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakawaTakuya committed Jan 28, 2025
1 parent 7adec57 commit cb901b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/Auth/signInWithGoogleAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export const signInWithGoogleAccount = async () => {
"Googleアカウントでのログインに失敗しました。ページを更新して再度お試しください。";
if ((error as Error)?.message.includes("auth/popup-closed-by-user")) {
message = "ログインがキャンセルされました";
} else if (
(error as Error)?.message.includes("appCheck/fetch-status-error")
) {
message =
"App Checkの初期化に失敗しました。debug tokenがサーバーに登録されていることを確認してください。";
}
showSnackBar({
message,
Expand Down
3 changes: 3 additions & 0 deletions src/utils/Auth/signInWithMail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export const signInWithMail = async (email: string, password: string) => {
} else if (errorMessage.includes("auth/too-many-requests")) {
snackBarMessage =
"リクエストが多すぎます。しばらくしてからもう一度お試しください。";
} else if (errorMessage.includes("appCheck/fetch-status-error")) {
snackBarMessage =
"App Checkの初期化に失敗しました。debug tokenがサーバーに登録されていることを確認してください";
}

showSnackBar({
Expand Down

0 comments on commit cb901b9

Please sign in to comment.