Skip to content

Commit

Permalink
chore(release): publish and fix expired token error
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 6, 2024
1 parent 4934c65 commit 938fc2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rsapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.82",
"version": "0.0.83",
"main": "index.js",
"types": "index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion sync/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ impl SyncClient {
if code != 200 {
let body = resp.bytes().await?;
let content = String::from_utf8_lossy(&body);
if content.contains("ExpiredToken") {
if content.contains("ExpiredToken") || content.contains("Request has expired") {
return Err(SyncError::ExpiredToken);
} else {
return Err(SyncError::Custom(format!(
Expand Down

0 comments on commit 938fc2c

Please sign in to comment.