progressive web apps – “Sign in with Apple” failing PWA on iOS (same code works on web)


I am building a PWA using Supabase for authentication. I am bundling it into an iOS app webview using PWABuilder.com. I am using “Sign in with Apple” for my oauth flow.

I’ve configured “Sign in with Apple” and it works as expected via the website (https://snazzy-pie-b17fe4.netlify.app)

However, after bundling it into an iOS app and building onto my phone or simulator, “Sign in with Apple” no longer works.

Instead, client is directed to https://fdocizdzprkfeigbnlxy.supabase.co/auth/v1/callback, which shows

{"code":400,"msg":"OAuth state parameter missing"}

It should send a request like:

https://appleid.apple.com/auth/authorize?client_id=app.arboreats.login&redirect_uri=https%3A%2F%2Ffdocizdzprkfeigbnlxy.supabase.co%2Fauth%2Fv1%2Fcallback&response_mode=form_post&response_type=code&scope=email+name&state=[[b64-state]]

You can see in my expected redirect_uri, all the expected GET parameters are present (but missing in the bundled iOS app).

How can I configure the app to ensure that all GET params are sent in the supabase redirect uri?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img