Skip to content

Commit 7f40f6c

Browse files
authored
Fix OAuth2 Example Code (#1844)
The token and token type are backwards. When using the current code, it will set the Authorization Header to "[token] Bearer". Switching them around fixes the issue and sets the Authorization Header to "Bearer [token]".
1 parent d5b0e9a commit 7f40f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/authenticators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ For example:
6565

6666
```csharp
6767
client.Authenticator = new OAuth2AuthorizationRequestHeaderAuthenticator(
68-
"Bearer", token
68+
token, "Bearer"
6969
);
7070
```
7171

0 commit comments

Comments
 (0)