Skip to content

Commit

Permalink
Merge pull request #52 from taixw2/patch-1
Browse files Browse the repository at this point in the history
Fix: Modifying a ticket is never valid
  • Loading branch information
Javen205 authored Apr 21, 2024
2 parents 2a47146 + 36073b4 commit 810ecc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commons/src/api/JsTicketApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export class JsTicketApi {
if (!ticket.expired_time) return false
if (ticket.errcode) return false
if (ticket.expired_time < new Date().getTime()) return false
return ticket.access_token != null
return ticket.ticket != null
}
}

0 comments on commit 810ecc3

Please sign in to comment.