What is the full list of provider id's for firebase.UserInfo.providerId?

后端 未结 5 598
自闭症患者
自闭症患者 2020-12-19 02:47

The docs say

For example, \'facebook.com\', or \'google.com\'.

However, is the exhaustive list available somewhere and can I dep

5条回答
  •  遥遥无期
    2020-12-19 03:13

    you can use this method to identify the Type of Provider :

        private String checkType(String s) {
        String type;
    
        switch (s) {
            case "password":
                type = "EmailAuthProviderID";
                break;
            case "phone":
                type = "PhoneAuthProviderID";
                break;
            case "google.com":
                type = "GoogleAuthProviderID";
                break;
            case "facebook.com":
                type = "FacebookAuthProviderID";
                break;
            case "twitter.com":
                type = "TwitterAuthProviderID";
                break;
            case "github.com":
                type = "GitHubAuthProviderID";
                break;
    
        }
    
    
    }
    

提交回复
热议问题