Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Auth/Import Users: added a phone number to the user provider #541

Open
wants to merge 22 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions auth/import_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,12 @@ func (u *UserToImport) set(key string, value interface{}) *UserToImport {
//
// One or more user providers can be specified for each user when importing in bulk.
// See UserToImport type.
// More info at https://firebase.google.com/docs/reference/admin/node/firebase-admin.auth.userproviderrequest.md#properties
type UserProvider struct {
UID string `json:"rawId"`
ProviderID string `json:"providerId"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
DisplayName string `json:"displayName,omitempty"`
PhotoURL string `json:"photoUrl,omitempty"`
}
Expand Down