-
fix: pass XOAUTH2 token as str, not bytes (was corrupting the Bearer value)
released this
2026-06-28 22:45:25 +00:00 | 8 commits to main since this releaseaioimaplib's mail.xoauth2(user, token) builds the SASL string by f-string interpolating the token, so a bytes token injects the b'...' repr into auth=Bearer and breaks every XOAUTH2 login. dropped the .encode() (token is already str via _resolve_token/_as_str). corrected the inline comment and the CLAUDE.md note that both wrongly claimed bytes was required — that false note propagated the bug through prior review passes.
Signed-off-by: disqualifier dev@disqualifier.me
Downloads