angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

@angular/fire/app-check 18.0.1 app not registered (bad request)

Open isaacmenaf opened this issue 10 months ago • 4 comments

Using angular firebase app-check 18.0.1 I'm seeing a lot of requests returning

POST https://content-firebaseappcheck.googleapis.com/v1/projects/weddly-stg/apps…12e7c:exchangeRecaptchaV3Token?key= 400 (Bad Request)

{ "error": { "code": 400, "message": "App not registered: ", "status": "FAILED_PRECONDITION" } }

Even when my application (same appid) is registered correctly in the firebase appcheck console (attached)

Image

Setup:

import { initializeAppCheck, provideAppCheck, ReCaptchaV3Provider } from "@angular/fire/app-check";

provideAppCheck(() => { const provider = new ReCaptchaV3Provider(environment.appCheckKey); return initializeAppCheck(getApp(), { provider, isTokenAutoRefreshEnabled: true }); }),

"@angular/fire": "^18.0.1"

isaacmenaf avatar Feb 19 '25 07:02 isaacmenaf

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Feb 19 '25 07:02 google-oss-bot

Angular: 18.2.0

Firebase: 13.31.1

AngularFire: 18.0.1

isaacmenaf avatar Feb 19 '25 08:02 isaacmenaf

I am also experiencing this, I find when I try to do anything with Recaptcha and @angular/fire their starts to be 403 returns when requesting AppCheck. I have messed with the app.config.ts quite a bit and it doesn't seem to matter. I am unsure if I just used the firebase library if the issue would persist.

mkdavinci avatar Feb 21 '25 23:02 mkdavinci

I'm comming from trying the same with firebase library and I'm experience the same issue, I think I will create a new incident for firebase itself, let me know if you had tried using directly with firebase library. Thank you !

isaacmenaf avatar Feb 22 '25 01:02 isaacmenaf