Skip to content

Commit 338c355

Browse files
Merge pull request #1 from tehplague/fix-auth-argument-order
Use correct argument order when invoking httpclient.NewAuthenticatedClient
2 parents a9debae + 7067a21 commit 338c355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mittwaldv2/client_opt_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const apiTokenHeader = "X-Access-Token"
1919
// The access token needs to be obtained ahead-of-time.
2020
func WithAccessToken(token string) ClientOption {
2121
return func(_ context.Context, inner httpclient.RequestRunner) (httpclient.RequestRunner, error) {
22-
return httpclient.NewAuthenticatedClient(inner, apiTokenHeader, token), nil
22+
return httpclient.NewAuthenticatedClient(inner, token, apiTokenHeader), nil
2323
}
2424
}
2525

0 commit comments

Comments
 (0)