Replies: 1 comment 6 replies
-
I'll look into this, if not a bug it seems like at least a legit documentation issue. Ping me again or create an issue if you don't hear back. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am wondering if I'm doing anything wrong but when trying out App Check with a custom provider, it deadlocks itself, thus never gets to complete the
getToken
function.The setup is:
So the desired flow is:
clientSolution
(using a 3rd party attestation provider)clientSolution
and retrieve an App Check tokenThe trouble I'm running into is that generating the
clientSolution
works but as soon as we hit theawait verificationFn(..)
line, the browser stops and just stays there forever.Checking in the network monitor, the browser does not even try to do the fetch call to the cloud function, it just waits.
My guess is that it waits for the
getToken
to complete before executing any Cloud Function call (to be able to put the AppCheck token in the headers).But how can this deadlock be avoided without using a completely different verification function (e.g. in another project)?
I could not find any information on this and wonder how others get this working to use a HTTPS Callable Cloud Function as App Check Token "minter" without running in this deadlock.
Beta Was this translation helpful? Give feedback.
All reactions