diff --git a/api/authmethods/authenticate.go b/api/authmethods/authenticate.go index 96a7f778c5..fd5cb702c2 100644 --- a/api/authmethods/authenticate.go +++ b/api/authmethods/authenticate.go @@ -35,9 +35,5 @@ func (c *Client) Authenticate(ctx context.Context, authMethodId string, credenti return nil, nil, fmt.Errorf("error decoding Authenticate response: %w", err) } - if target.Token != "" { - c.client.SetToken(target.Token) - } - return target, apiErr, nil }