Skip to content

Commit

Permalink
fix: app data type
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Oct 27, 2023
1 parent f22b303 commit 32377dc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
32 changes: 16 additions & 16 deletions signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import (

// SignUpInput defines attributes for signup request
type SignUpInput struct {
Email string `json:"email"`
Password string `json:"password"`
ConfirmPassword string `json:"confirm_password"`
GivenName *string `json:"given_name,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
MiddleName *string `json:"middle_name,omitempty"`
NickName *string `json:"nick_name,omitempty"`
Picture *string `json:"picture,omitempty"`
Gender *string `json:"gender,omitempty"`
BirthDate *string `json:"birthdate,omitempty"`
PhoneNumber *string `json:"phone_number,omitempty"`
Roles []*string `json:"roles,omitempty"`
Scope []*string `json:"scope,omitempty"`
RedirectURI *string `json:"redirect_uri,omitempty"`
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled,omitempty"`
AppData *string `json:"app_data,omitempty"`
Email string `json:"email"`
Password string `json:"password"`
ConfirmPassword string `json:"confirm_password"`
GivenName *string `json:"given_name,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
MiddleName *string `json:"middle_name,omitempty"`
NickName *string `json:"nick_name,omitempty"`
Picture *string `json:"picture,omitempty"`
Gender *string `json:"gender,omitempty"`
BirthDate *string `json:"birthdate,omitempty"`
PhoneNumber *string `json:"phone_number,omitempty"`
Roles []*string `json:"roles,omitempty"`
Scope []*string `json:"scope,omitempty"`
RedirectURI *string `json:"redirect_uri,omitempty"`
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled,omitempty"`
AppData map[string]interface{} `json:"app_data,omitempty"`
}

// SignUp is method attached to AuthorizerClient.
Expand Down
34 changes: 17 additions & 17 deletions update_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ import (

// UpdateProfileInput defines attributes for signup request
type UpdateProfileInput struct {
Email *string `json:"email,omitempty"`
NewPassword *string `json:"new_password,omitempty"`
ConfirmNewPassword *string `json:"confirm_new_password,omitempty"`
OldPassword *string `json:"old_password,omitempty"`
GivenName *string `json:"given_name,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
MiddleName *string `json:"middle_name,omitempty"`
NickName *string `json:"nick_name,omitempty"`
Picture *string `json:"picture,omitempty"`
Gender *string `json:"gender,omitempty"`
BirthDate *string `json:"birthdate,omitempty"`
PhoneNumber *string `json:"phone_number,omitempty"`
Roles []*string `json:"roles,omitempty"`
Scope []*string `json:"scope,omitempty"`
RedirectURI *string `json:"redirect_uri,omitempty"`
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled,omitempty"`
AppData *string `json:"app_data,omitempty"`
Email *string `json:"email,omitempty"`
NewPassword *string `json:"new_password,omitempty"`
ConfirmNewPassword *string `json:"confirm_new_password,omitempty"`
OldPassword *string `json:"old_password,omitempty"`
GivenName *string `json:"given_name,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
MiddleName *string `json:"middle_name,omitempty"`
NickName *string `json:"nick_name,omitempty"`
Picture *string `json:"picture,omitempty"`
Gender *string `json:"gender,omitempty"`
BirthDate *string `json:"birthdate,omitempty"`
PhoneNumber *string `json:"phone_number,omitempty"`
Roles []*string `json:"roles,omitempty"`
Scope []*string `json:"scope,omitempty"`
RedirectURI *string `json:"redirect_uri,omitempty"`
IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled,omitempty"`
AppData map[string]interface{} `json:"app_data,omitempty"`
}

// UpdateProfile is method attached to AuthorizerClient.
Expand Down

0 comments on commit 32377dc

Please sign in to comment.