PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 5, 2022

[FIXED] How to set redirect url on firebase web at sign in with apple

 August 05, 2022     firebase, javascript, oauth, web     No comments   

Issue

I ran into a problem while implementing firebase apple login.

enter image description here

After checking the problem, I realized that the redirect URI was hanging as a handler URI and I had to change it to the authentication URI of our app and handle it.

so, here is my code

        var provider = new firebase.auth.OAuthProvider('apple.com'); 
        provider.addScope('email');
        provider.addScope('name');   


        provider.setCustomParameters({
              locale: 'ko_KR'
        });
     
        firebase.auth().signInWithPopup(provider);

I tried configuring the redirect_url in setCustomParameters(), but it didn't work. Is there any other way to set the url besides the one I've tried?


Solution

It should be https://YOUR_FIREBASE_PROJECT_ID.firebaseapp.com/__/auth/handler. It's in the documentation : https://firebase.google.com/docs/auth/web/apple#web-version-8_3



Answered By - alex
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing