首页 > 解决方案 > Flutter - 突然得到这个错误 ERROR_INVALID_USER_TOKEN

问题描述

应用程序运行良好,但突然停止工作。

我的应用程序中有一个 Firebase 电话身份验证。我在 fireabse 中添加了一个测试号,但是一旦我输入测试号并测试 OTP 并点击提交按钮,我就得到了这个异常。

PlatformException(ERROR_INVALID_USER_TOKEN, This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key., null)

我无法理解问题所在以及如何解决此问题。

标签: exceptionflutterfirebase-authentication

解决方案


确保您没有更改项目路径,我解决了将项目移动到原始路径的问题。


推荐阅读