Unfortunately, https://docs.expo.dev/versions/latest/sdk/google/ and https://docs.expo.dev/versions/latest/sdk/apple-authentication/ modules are not compatible with web environments. I'm not aware about the corresponding modules implementation, but I'd say they rely on native capabilities which are not available on browsers.
Since I wrote this story, Expo has deprecated expo-google-app-auth in behalf of https://docs.expo.dev/versions/latest/sdk/auth-session/, which happens to be compatible for web. If you want to get authentication working in both web and native versions of your app, I'd suggest you to have a look at the documentation and start implementing from there.