capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.

Home Page:https://capawesome.io/plugins/firebase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appcheck Package - getting invalid token with short length

SureshKumarToverto opened this issue · comments

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

5.3.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

We are getting invalid token with short length of token example below,

  • X-Firebase-AppCheck: eyJlcn85ciI6Iigjyreds05fRVJST1IifQ==
  • npm i @capacitor-firebase/app-check@5.3.0-dev.66c3007.1702913246

When we use current public release package, we are able to get the full-length valid token but when we use the Dev published branch, we noted this issue.
If you have any insights, recommendations, or steps we can take to address this issue, we would greatly appreciate your assistance.

Thank you for your time and support.

Expected behavior

We need a valid token, and the provider should be "device_check_app_attest."

Reproduction

https://github.com/capawesome-team/capacitor-firebase/tree/8b4b50f61f11e692290ef6ca1dd2832f20547801/packages/app-check

Steps to reproduce

1.install and run the app

  • npm i @capacitor-firebase/app-check@5.3.0-dev.66c3007.1702913246 OR
  • npm i @capacitor-firebase/app-check@latest

Other information

No response

Capacitor doctor

ionic cap build iOS

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.

This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue.

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.