# Auth Update EmailでEmailアドレスのアップデートがされない

**URL:** <https://www.nocode-faq.com/t/topic/3981>\
**Category:** flutterflow\
**Created:** [2023 年 10 月 17 日午後 1:49 UTC](https://www.nocode-faq.com/t/topic/3981 "2023-10-17T13:49:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rentaro.kashima.bz](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/rentaro.kashima.bz/32/6594_2.png) [@rentaro.kashima.bz](https://www.nocode-faq.com/u/rentaro.kashima.bz)\
**Post date:** [2023 年 10 月 17 日午後 1:49 UTC](https://www.nocode-faq.com/t/topic/3981/1 "2023-10-17T13:49:56Z")

</div>

ユーザーEmailを変更するためにActionに"Auth Update Email" を入れてinput valueに変更するよう組んでいますが、新たなEmailでログインしなおしてもエラーが生じ、FirebaseのAuth上でも変更がされておりません。

![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/6/61fdfb5414f1f7df9f6738dba544ff4d55c91ea0.png)

以下のようなレポートもありますが、解決策がありましたらご教示いただければ幸いです。

> <https://github.com/FlutterFlow/flutterflow-issues/issues/1162>
>
> \### Has your issue been reported?
> 
> \- \[X\] I have searched the existing issues and… confirm it has not been reported.
> \- \[X\] I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
> 
> \### Current Behavior
> 
> The new action to update email with firebase don't work
> 
> \### Expected Behavior
> 
> I want to update the email of my user
> 
> \### Steps to Reproduce
> 
> 1. Create page
> 2. Enable firebase and auth
> 3. Add user to firebase
> 4. Add textfield and button to page 
> 5. Add action on button to edit email 
> 6. Choose textfield to new email
> 7. Test
> 
> \### Reproducible from Blank
> 
> \- \[X\] The steps to reproduce above start from a blank project.
> 
> \### Bug Report Code (Required)
> 
> IT4OlMjf35dOpbxA+Kr9bfpV+TgXOWY1U4ZMitZxSko0fZfNGu4MPsneVFRuZrymdEFif1qZkmUK7PfqkvLhVO5fIS6sGd1E/7tqeALJTj6tM5CJBYeRfW1QGd5gGUCF1sK32hUlXeluSCxk2EyuefPLcB3DGb37OVY/PPK1KdeK2SrDX1iXc2URm05KZDPz
> 
> \### Context
> 
> I want to update the email of my user directly in the app
> 
> \### Visual documentation
> 
> 
> https://github.com/FlutterFlow/flutterflow-issues/assets/136898815/8595f0c7-d5db-49e3-8b9a-4b5eef5a5ebd
> 
> 
> 
> \### Additional Info
> 
> sorrry i need to post this quickly, so the description is short
> 
> \### Environment
> 
> \`\`\`markdown
> \- FlutterFlow version: 3.1 20 july
> \- Platform:web
> \- Browser name and version: brave 1.54
> \- Operating system and version affected: windows 11
> \`\`\`

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2023 年 10 月 18 日午前 11:58 UTC](https://www.nocode-faq.com/t/topic/3981/2 "2023-10-18T11:58:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/d/dfe7ac501516e28d4362feb5c7968fac43060da1.png)

正しく設定できているのであれば、FirebaseのRuleが正しく設定されてないのではないでしょうか？  
例えば、該当のCollectionに対してWriteがEveryoneなどになっている必要があります。

---

<div class="post-metadata">

**Author:** ![rentaro.kashima.bz](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/rentaro.kashima.bz/32/6594_2.png) [@rentaro.kashima.bz](https://www.nocode-faq.com/u/rentaro.kashima.bz)\
**Post date:** [2023 年 10 月 18 日午後 2:56 UTC](https://www.nocode-faq.com/t/topic/3981/3 "2023-10-18T14:56:32Z")

</div>

ありがとうございます！  
Firebase Ruleも確認して実行してみましたが、ダメでした。

また、Collection内（Firestore Database）のデータはUpdate Documentで変わるのですが（例えばUser CollectionのEmail field）、ログインに関わる以下Authenticationの部分のEmailアドレスがAuthのUpdate Emailを実行しても変更されません。

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/1/1d8e859c5065b16904e46da31be9ec13ece2c862.png)

この通りには行っているのですが、

> **[Update Email](https://docs.flutterflow.io/actions/actions/backend-database/firebase-authentication/update-email)**

その他に確認点があるのか、FlutterFlow上の問題なのか…

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2023 年 10 月 18 日午後 4:17 UTC](https://www.nocode-faq.com/t/topic/3981/4 "2023-10-18T16:17:13Z")

</div>

動作自体は現時点で正常に動作するので、FlutterflowのAuthに関する設定が出来て無いのだと思います。[Screen capture - f32b5bae5fe93cc6904b799a7c194c1f - Gyazo](https://gyazo.com/f32b5bae5fe93cc6904b799a7c194c1f)

例えば、、、、

Enable Auth がOnになってない。

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/d/dfcdddc1804c223ab15b051b483dc5da927fa9a2.png)

FlutterflowのFirebase設定の管理権限を付与してない。

> **[Firebase Setup](https://docs.flutterflow.io/data-and-backend/firebase/firebase-setup)**

とかかなーと思います。

---

<div class="post-metadata">

**Author:** ![rentaro.kashima.bz](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/rentaro.kashima.bz/32/6594_2.png) [@rentaro.kashima.bz](https://www.nocode-faq.com/u/rentaro.kashima.bz)\
**Post date:** [2023 年 10 月 18 日午後 5:43 UTC](https://www.nocode-faq.com/t/topic/3981/5 "2023-10-18T17:43:14Z")

</div>

ありがとうございます 🙂  
Enable Authもactiveになっており、firebase/管理者設定（role等々）も問題なさそうだったので、何かなあという感じですが、改めて色々と確認してみます。

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2023 年 10 月 19 日午前 12:00 UTC](https://www.nocode-faq.com/t/topic/3981/6 "2023-10-19T00:00:12Z")

</div>

エラー原因となるものが多いので、なかなか探しづらいですね。↑で成功しているのは、アプリテスト用に１から作って設定いじってないので、一からやり直せば、設定できるとかそんなレベルの見落としだと思います。もし、発見できれば、共有いただけるとありがたいです。

---

<div class="post-metadata">

**Author:** ![rentaro.kashima.bz](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/rentaro.kashima.bz/32/6594_2.png) [@rentaro.kashima.bz](https://www.nocode-faq.com/u/rentaro.kashima.bz)\
**Post date:** [2023 年 10 月 21 日午後 5:04 UTC](https://www.nocode-faq.com/t/topic/3981/7 "2023-10-21T17:04:24Z")

</div>

遅くなりました。  
承知しました。発見後シェアしますね 🙂
