firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Can't sign in to the web app via google on apple devices

Open morozovamv opened this issue 1 year ago • 0 comments

Operating System

iOS 17.3.1; Sonoma 14.3.1

Browser Version

Safari 17.3 (19617.2.4)

Firebase SDK Version

13.3.0

Firebase SDK Product:

Auth

Describe your project's tooling

yarn, nx, vite, react, ts, emotion

Describe the problem

I created and deployed an app following the firebase guides (google-signin, hosting/quickstart). Then I checked how the auth works, turned out that I can't login to the app from the auth--testing.web.app subdomain on my iPhone; on Mac it works only in Chrome; on my pc it works in Chrome and Edge:

Mac iPhone Win11 PC
Safari - - ?
Chrome + - +
Edge ? ? +

Note:

I also added both https://auth--testing.firebaseapp.com//auth/handler and https://auth--testing.web.app//auth/handler to the "Authorised redirect URIs" section on Google Cloud -> APIs and services -> Credentials.

Everything seem working fine under https://auth--testing.firebaseapp.com

Steps and code to reproduce issue

The repo: https://github.com/morozovamv/firebase-auth-testing

STR:

Expected result: user is authorized and signed in to the app Actual result: the app opens in the initial state

morozovamv avatar Feb 16 '24 01:02 morozovamv