high-optician-2097
ctx := context.Background()
res, err := client.V0alpha2Api.AdminDeleteIdentity(context.WithValue(context.Background(), ory.ContextAccessToken, "the-token"), "asdf").Execute()
miniature-london-86230
01/06/2022, 3:59 PM// DeleteIdentity remove an identity
func (c *Client) DeleteIdentity(ctx context.Context, identityID string) error {
res, err := c.oryhttpc.V0alpha2Api.AdminDeleteIdentity(c.contextWithSecret(ctx), identityID).Execute()
if err != nil {
return err
}
defer res.Body.Close()
return nil
}
Invoking this returns the following error: undefined response type
.
the contextWithSecretMethod
simply adds the PAT to the context. Have I missed something?miniature-london-86230
01/06/2022, 4:02 PMclient-go
is reporting. In the module it returns an http.Response and error. In the latest docs it returns a tuple in the example. Not sure it is a big deal.miniature-london-86230
01/06/2022, 4:08 PMhigh-optician-2097