Function
parseRefreshToken
(refresh: string | null | undefined)
Source from the content-addressed store, hash-verified
| 712 | let accessToken = currentAuth?.type === "oauth" ? currentAuth.access : null |
| 713 | |
| 714 | const parseRefreshToken = (refresh: string | null | undefined) => (refresh ?? "").split("|")[0] || "" |
| 715 | |
| 716 | // Check if token needs refresh (5 minutes before expiration) |
| 717 | if (currentAuth?.type === "oauth" && Date.now() > currentAuth.expires - 5 * 60 * 1000) { |
Tested by
no test coverage detected