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:
1 parent
ff0d49b6e4
commit
535bca5a7a
1 file changed
-4
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user