Skip to content

Commit

Permalink
fix: invalid access token (4) exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Sep 25, 2024
1 parent 5f29524 commit fb8d34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VkNet.AudioBypassService/Utils/VkApiInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public VkResponse Call(string methodName, VkParameters parameters, bool skipAuth

var vkError = error.ToObject<VkError>(_serializer);

if (vkError?.ErrorCode is not (5 or 1117 or 1114) || // token has expired
if (vkError?.ErrorCode is not (4 or 5 or 1117 or 1114) || // token has expired
await _tokenRefreshHandler.RefreshTokenAsync(_tokenStore.Token) is not { } newToken)
throw new VkApiException(vkError);

Expand Down

0 comments on commit fb8d34e

Please sign in to comment.