diff --git a/internal/auth/authutil/user_info.go b/internal/auth/authutil/user_info.go index 5baa7dd25..eebcc5fb2 100644 --- a/internal/auth/authutil/user_info.go +++ b/internal/auth/authutil/user_info.go @@ -60,7 +60,7 @@ func (u *UserInfo) UnmarshalJSON(b []byte) error { return err } default: - return fmt.Errorf("unable to unmarshal JSON for email_verified field. Expected bool or string, got: %s", reflect.TypeOf(rawEmailVerified)) + return fmt.Errorf("email_verified field expected to be bool or string, got: %s", reflect.TypeOf(rawEmailVerified)) } alias.EmailVerified = &emailVerified } diff --git a/internal/auth/authutil/user_info_test.go b/internal/auth/authutil/user_info_test.go index 0fa1d4e22..d0f79d1ec 100644 --- a/internal/auth/authutil/user_info_test.go +++ b/internal/auth/authutil/user_info_test.go @@ -67,7 +67,7 @@ func TestUserInfo(t *testing.T) { }, { name: "Email verified field not string or bool", - expect: "cannot decode response: unable to unmarshal JSON for email_verified field. Expected bool or string, got: float64", + expect: "cannot decode response: email_verified field expected to be bool or string, got: float64", httpStatus: http.StatusOK, response: `{ "email_verified": 0 }`, },