How to sign in with apple for web with firebase
Use Firebase JS SDK
Go to Certificates, Identifiers & Profiles -> Identifier create 2 ids: App ID and Service ID
For example: I have App ID com.onmyway133.myapp and Service ID com.onmyway133.myweb
Remember that to view App ID or Service ID, there’s dropdown menu on the right
For App ID, enable
- Associated Domains
- Sign In with Apple: Enable it as Primary App ID
For Service ID, use firebase callback url
Go to Keys and create new auth key. Configure that key with the primary App ID above
Go to Sign in providers and enable Apple sign in.
- Service ID identifier (com.onmyway133.myweb)
- OAuth code flow configuration: fill in your team id, key id and key secret content.