mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
13 lines
441 B
JavaScript
Executable File
13 lines
441 B
JavaScript
Executable File
export default async (request) => {
|
|
if (__comty_shared_state.onExpiredExceptionEvent) {
|
|
if (__comty_shared_state.excludedExpiredExceptionURL.includes(request.url)) return
|
|
|
|
await new Promise((resolve) => {
|
|
__comty_shared_state.eventBus.once("session.regenerated", () => {
|
|
console.log(`Session has been regenerated, retrying request`)
|
|
|
|
resolve()
|
|
})
|
|
})
|
|
}
|
|
} |