Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jyx04 authored Jun 11, 2024
1 parent f5713ec commit cf22060
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,11 @@ async function handlePlusPostRequest(request) {
let jsonAccessToken, jsonRefreshToken;
try {
const tokenData = JSON.parse(refreshToken);
if (tokenData.access_token && tokenData.refresh_token) {
if (tokenData.access_token) {
jsonAccessToken = tokenData.access_token;
} else if (tokenData.refresh_token) {
jsonRefreshToken = tokenData.refresh_token;
} else if (tokenData.accessToken) {
}else if (tokenData.accessToken) {
jsonAccessToken = tokenData.accessToken;
jsonRefreshToken = '';
}
Expand Down

0 comments on commit cf22060

Please sign in to comment.