Skip to content

Commit 5ccd030

Browse files
committed
tweak error wording
1 parent f8ad29f commit 5ccd030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/oauth/flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (c *httpClient) pollOnce(ctx context.Context, tokenEndpoint, deviceCode str
328328
func (c *httpClient) Refresh(ctx context.Context, token *Token) (*TokenResponse, error) {
329329
endpointURL, err := token.EndpointURL()
330330
if err != nil {
331-
return nil, errors.Wrap(err, "invlaid token endpoint URL")
331+
return nil, errors.Wrap(err, "invlaid token endpoint")
332332
}
333333

334334
config, err := c.Discover(ctx, endpointURL)

internal/oauth/http_transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func maybeRefresh(ctx context.Context, token *Token) (*Token, error) {
8686

8787
endpointURL, err := token.EndpointURL()
8888
if err != nil {
89-
return nil, errors.Wrap(err, "invalid token endpoint URL")
89+
return nil, errors.Wrap(err, "invalid token endpoint")
9090
}
9191

9292
next := resp.Token(endpointURL)

0 commit comments

Comments
 (0)