robingenz / capacitor-firebase-authentication-demo

⚡️ Simple Ionic Angular app to demonstrate the use of the Capacitor Firebase Authentication plugin.
MIT License
27 stars 13 forks source link

Appcheck Package is not correctly using the provider Device Check vs AppAttest For iOS 14+ devices #227

Closed SureshKumarToverto closed 10 months ago

SureshKumarToverto commented 10 months ago

Describe the bug When we test it on IOS 14+ devices it' still uses the Device check instead of AppAttest.

To Reproduce github.com/TamilselvanMariyappan/capacitor-firebase-authentication-demo/tree/AppAttest-AppCheck

Steps to reproduce By logging the device Get bearer token response, inspect with JWT response you can see the response

Expected behavior { "sub": "1:06:ios:1b3f479e7*", "aud": [ "projects/85***", "projects/ABC" ], "provider": "device_check_app_attest", "iss": "https://firebaseappcheck.googleapis.com/", "exp": 1695293981, "iat": 1695290381, "jti": "EBdv4gM8*****i1j1lMX" }`

Current behavior { "sub": "1:06:ios:3b262cd82", "aud": [ "projects/85***", "projects/ABC" ], "provider": "device_check_device_identification", "iss": "https://firebaseappcheck.googleapis.com/", "exp": 1695284564, "iat": 1695280964, "jti": "G6vqvRPv**60tRmR1" } Current behavior - Screenshots Screenshot 2024-01-20 at 7 05 50 PM

Smartphone (please complete the following information):

- Device: [iPhone6]

robingenz commented 10 months ago

I close this as duplicate of https://github.com/capawesome-team/capacitor-firebase/issues/490