From 32377dcef9a72db1437d73d97365aa24dfc64515 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Fri, 27 Oct 2023 11:18:33 +0530 Subject: [PATCH] fix: app data type --- signup.go | 32 ++++++++++++++++---------------- update_profile.go | 34 +++++++++++++++++----------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/signup.go b/signup.go index f77e893..62f6fa6 100644 --- a/signup.go +++ b/signup.go @@ -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. diff --git a/update_profile.go b/update_profile.go index 0e7aeb2..e9b73cf 100644 --- a/update_profile.go +++ b/update_profile.go @@ -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.