@platformatic/watt-extra 1.2.1-alpha.1 → 1.2.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/watt.js +1 -1
- package/package.json +1 -1
- package/plugins/auth.js +5 -5
package/lib/watt.js
CHANGED
package/package.json
CHANGED
package/plugins/auth.js
CHANGED
|
@@ -74,11 +74,11 @@ async function authPlugin (app) {
|
|
|
74
74
|
|
|
75
75
|
app.token = await loadToken()
|
|
76
76
|
|
|
77
|
-
await setInterval(async () => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}, offset * 1000 / 2).unref()
|
|
77
|
+
// await setInterval(async () => {
|
|
78
|
+
// // Check if token is expired to propagate it to the runtime
|
|
79
|
+
// // via the shared context
|
|
80
|
+
// await getAuthorizationHeader()
|
|
81
|
+
// }, offset * 1000 / 2).unref()
|
|
82
82
|
|
|
83
83
|
// We cannot change the global dispatcher because it's shared with the runtime main thread.
|
|
84
84
|
const wattDispatcher = new Agent()
|