title: App Check for Expo/React Native app using Firebase JS SDK
body: <p>My Expo based React Native app worked perfectly fine until I added Firebase App Check.</p>
  <p>I am using Firebase JS SDK and not React Native Firebase because it is suggested <a href="https://docs.expo.dev/guides/using-firebase/#usage-with-expo" rel="nofollow noreferrer">here</a> for cross platform development.</p>
  <p>Now how can I get and then send <a href="https://firebase.google.com/docs/app-check/cloud-functions?authuser=0" rel="nofollow noreferrer"><code>context.auth</code> (link)</a> to Firebase Functions? Or How can I send what Firebase Storage needs to functions manually?</p>
  <p>Storage seems to work fine with AppCheck and AppAttest enabled if it's not Enforced but as soon as I enforce it, the app throws a an error every time there is image load from storage that User is not authenticated.</p>
  <p><a href="https://i.stack.imgur.com/XnrFd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XnrFd.png" alt="enter image description here" /></a></p>
  <p><a href="https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck" rel="nofollow noreferrer">https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck</a></p>