The method or property expo-app-auth.authAsync is not available on web

Hello!

I’m trying to use expo-google-app-auth w/ Expo 35 in a managed workflow on web.

From what I see, both AppAuth and Google are marked as compatible with web:

https://docs.expo.io/versions/v35.0.0/sdk/google/

However, I’m getting an error on web. Code snippet:

const CLIENT_IDS = {
  iosClientId:
    "MY_ID.apps.googleusercontent.com",
  clientId:
    "DIFFERENT_ID.apps.googleusercontent.com"
};
const result = await Google.logInAsync({
  ...CLIENT_IDS,
  scopes: ["profile", "email"]
});

Error:

Uncaught (in promise) Error: The method or property expo-app-auth.authAsync is not available on web, are you sure you've linked all the native dependencies properly?
    at authAsync$

I’ve also stumbled this. It doesn’t look like the module supports web.

Thanks for the reply and confirmation!

It’s now compat from SDK 37+

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.