Skip to content

Commit 310cc34

Browse files
authored
Merge pull request #221 from XeroAPI/fix-revoke-access-token-not-working
fixed bug with revoke token method
2 parents 7e8fb1a + 82b884a commit 310cc34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Xero.NetStandard.OAuth2Client/Xero.NetStandard.OAuth2Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageId>Xero.NetStandard.OAuth2Client</PackageId>
5-
<Version>1.2.1</Version>
5+
<Version>1.2.2</Version>
66
<Authors>Xero</Authors>
77
<Company>Xero</Company>
88
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>

Xero.NetStandard.OAuth2Client/src/Client/XeroClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public async Task RevokeAccessTokenAsync(IXeroToken xeroToken)
278278
Address = "https://identity.xero.com/connect/revocation",
279279
ClientId = xeroConfiguration.ClientId,
280280
ClientSecret = xeroConfiguration.ClientSecret,
281-
Token = xeroToken.AccessToken
281+
Token = xeroToken.RefreshToken
282282
});
283283

284284
if (response.IsError)

0 commit comments

Comments
 (0)