mardi 24 novembre 2020

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

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?




Aucun commentaire:

Enregistrer un commentaire