@@ -50,7 +50,7 @@ type ExternalAuthDeviceExchange struct {
50
50
}
51
51
52
52
func (c * Client ) ExternalAuthDeviceByID (ctx context.Context , provider string ) (ExternalAuthDevice , error ) {
53
- res , err := c .Request (ctx , http .MethodGet , fmt .Sprintf ("/api/v2/externalauth /%s/device" , provider ), nil )
53
+ res , err := c .Request (ctx , http .MethodGet , fmt .Sprintf ("/api/v2/external-auth /%s/device" , provider ), nil )
54
54
if err != nil {
55
55
return ExternalAuthDevice {}, err
56
56
}
@@ -64,7 +64,7 @@ func (c *Client) ExternalAuthDeviceByID(ctx context.Context, provider string) (E
64
64
65
65
// ExchangeGitAuth exchanges a device code for an external auth token.
66
66
func (c * Client ) ExternalAuthDeviceExchange (ctx context.Context , provider string , req ExternalAuthDeviceExchange ) error {
67
- res , err := c .Request (ctx , http .MethodPost , fmt .Sprintf ("/api/v2/externalauth /%s/device" , provider ), req )
67
+ res , err := c .Request (ctx , http .MethodPost , fmt .Sprintf ("/api/v2/external-auth /%s/device" , provider ), req )
68
68
if err != nil {
69
69
return err
70
70
}
@@ -77,7 +77,7 @@ func (c *Client) ExternalAuthDeviceExchange(ctx context.Context, provider string
77
77
78
78
// ExternalAuthByID returns the external auth for the given provider by ID.
79
79
func (c * Client ) ExternalAuthByID (ctx context.Context , provider string ) (ExternalAuth , error ) {
80
- res , err := c .Request (ctx , http .MethodGet , fmt .Sprintf ("/api/v2/externalauth /%s" , provider ), nil )
80
+ res , err := c .Request (ctx , http .MethodGet , fmt .Sprintf ("/api/v2/external-auth /%s" , provider ), nil )
81
81
if err != nil {
82
82
return ExternalAuth {}, err
83
83
}
0 commit comments