From 8a3b832f8a211b0437d36cadc31633f0f92d586b Mon Sep 17 00:00:00 2001 From: Spencer Witt <3409780+spwitt@users.noreply.github.com> Date: Fri, 30 Jan 2026 11:02:47 -0600 Subject: [PATCH] remove retrieveUserUsingJWT client method ENG-3720 --- pkg/fusionauth/Client.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/pkg/fusionauth/Client.go b/pkg/fusionauth/Client.go index e1a088f..ff677f2 100644 --- a/pkg/fusionauth/Client.go +++ b/pkg/fusionauth/Client.go @@ -8122,33 +8122,6 @@ func (c *FusionAuthClient) RetrieveUserRecentLoginsWithContext(ctx context.Conte return &resp, &errors, err } -// RetrieveUserUsingJWT -// Retrieves the user for the given Id. This method does not use an API key, instead it uses a JSON Web Token (JWT) for authentication. -// -// string encodedJWT The encoded JWT (access token). -func (c *FusionAuthClient) RetrieveUserUsingJWT(encodedJWT string) (*UserResponse, *Errors, error) { - return c.RetrieveUserUsingJWTWithContext(context.TODO(), encodedJWT) -} - -// RetrieveUserUsingJWTWithContext -// Retrieves the user for the given Id. This method does not use an API key, instead it uses a JSON Web Token (JWT) for authentication. -// -// string encodedJWT The encoded JWT (access token). -func (c *FusionAuthClient) RetrieveUserUsingJWTWithContext(ctx context.Context, encodedJWT string) (*UserResponse, *Errors, error) { - var resp UserResponse - var errors Errors - - restClient := c.StartAnonymous(&resp, &errors) - err := restClient.WithUri("/api/user"). - WithAuthorization("Bearer " + encodedJWT). - WithMethod(http.MethodGet). - Do(ctx) - if restClient.ErrorRef == nil { - return &resp, nil, err - } - return &resp, &errors, err -} - // RetrieveVersion // Retrieves the FusionAuth version string. func (c *FusionAuthClient) RetrieveVersion() (*VersionResponse, *Errors, error) {