This website requires JavaScript.
Explore
Help
Sign In
starred
/
warmbly
Watch
1
Star
0
Fork
0
mirror of
https://github.com/warmbly/warmbly.git
synced
2026-10-26 00:03:46 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
e3769ef666a992e6e6fdca6e645d90b34fe96f01
warmbly
/
internal
/
pkg
/
stoken
T
History
Matthew Meszaros
6ce1a2aebb
feat: replace changed mailbox executors with drained generation-safe lifecycles and bound provider plus local refresh HTTP requests
2026-10-09 13:04:42 +00:00
..
http_test.go
feat: replace changed mailbox executors with drained generation-safe lifecycles and bound provider plus local refresh HTTP requests
2026-10-09 13:04:42 +00:00
http.go
feat: replace changed mailbox executors with drained generation-safe lifecycles and bound provider plus local refresh HTTP requests
2026-10-09 13:04:42 +00:00
stoken_test.go
feat: wire OnTokenRefresh on the Gmail worker client so every send and sync stops panicking, since goog.Client was constructed with all four message and label callbacks but no token callback while goog.Init unconditionally wrapped the token source in stoken, whose Token() calls that callback on every single request from inside the oauth2 transport's RoundTrip, making the nil func value a guaranteed nil-pointer dereference on the first Gmail API call any mailbox made (the Outlook path immediately below it set the same field correctly, so no Microsoft mailbox was affected), additionally guarding both goog.Init and msgraph.Init so the stoken wrapper is only installed when there is somewhere to persist a refreshed token to, hardening stoken.Token itself against a nil callback because it runs inside RoundTrip where a panic takes down the caller's request rather than surfacing as an error, and adding a regression test that panics without the guard and passes with it (
#118
)
2026-08-16 07:46:00 +02:00
stoken.go
feat: wire OnTokenRefresh on the Gmail worker client so every send and sync stops panicking, since goog.Client was constructed with all four message and label callbacks but no token callback while goog.Init unconditionally wrapped the token source in stoken, whose Token() calls that callback on every single request from inside the oauth2 transport's RoundTrip, making the nil func value a guaranteed nil-pointer dereference on the first Gmail API call any mailbox made (the Outlook path immediately below it set the same field correctly, so no Microsoft mailbox was affected), additionally guarding both goog.Init and msgraph.Init so the stoken wrapper is only installed when there is somewhere to persist a refreshed token to, hardening stoken.Token itself against a nil callback because it runs inside RoundTrip where a panic takes down the caller's request rather than surfacing as an error, and adding a regression test that panics without the guard and passes with it (
#118
)
2026-08-16 07:46:00 +02:00