Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
fix: add custom claims to add users an an option
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Jan 29, 2020
1 parent e5e6a20 commit e4a8bbe
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions firebase/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ import (
)

type NewUser struct {
UID string `json:"uid" yaml:"uid"`
Email string `json:"email" yaml:"email"`
EmailVerified bool `json:"email_verified" yaml:"email_verified"`
PhoneNumber string `json:"phone" yaml:"phone"`
Password string `json:"password" yaml:"password"`
DisplayName string `json:"name" yaml:"name" `
Disabled bool `json:"disabled" yaml:"disabled"`
PhotoURL string `json:"photo_url" yaml:"photo_url"`
UID string `json:"uid" yaml:"uid"`
Email string `json:"email" yaml:"email"`
EmailVerified bool `json:"email_verified" yaml:"email_verified"`
PhoneNumber string `json:"phone" yaml:"phone"`
Password string `json:"password" yaml:"password"`
DisplayName string `json:"name" yaml:"name" `
Disabled bool `json:"disabled" yaml:"disabled"`
PhotoURL string `json:"photo_url" yaml:"photo_url"`
CustomClaims []FirebaseUserCustomClaims `json:"custom_claims" yaml:"custom_claims"`
}

type FirebaseUserCustomClaims struct {
Key string `json:"key" yaml:"key"`
Value string `json:"value" yaml:"value"`
}

// NewFirebaseUser create a new firebase user using Email/Password Auth Provider
Expand Down

0 comments on commit e4a8bbe

Please sign in to comment.