Make Authenticate less misleading

Because clients clone in the API now, setting the token on the
authtokens client may mislead the user into thinking it's setting it on
the base client. Remove that set call.
This commit is contained in:
Jeff Mitchell committed 2020-09-09 10:33:23 -04:00
1 parent ff0d49b6e4
commit 535bca5a7a
1 file changed
-4
-4
View File
@@ -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
}