Skip to content

Commit

Permalink
fix: add email_verified field
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhil committed Dec 6, 2023
1 parent 8dda0c8 commit ab21790
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type mockUserinfo struct {
Phone string `json:"phone_number,omitempty"`
Address string `json:"address,omitempty"`
Groups []string `json:"groups,omitempty"`
EmailVerified bool `json:"email_verified"`
}

func (u *MockUser) ID() string {
Expand All @@ -70,6 +71,7 @@ func (u *MockUser) Userinfo(scope []string) ([]byte, error) {
Phone: user.Phone,
Address: user.Address,
Groups: user.Groups,
EmailVerified: user.EmailVerified,
}

return json.Marshal(info)
Expand Down

0 comments on commit ab21790

Please sign in to comment.