I'm not sure if this is the best way to implement it, but it's fully functional.
We could also create another class, something like IMAP_OAUTH2(IMAP) that could also handle the entire authorization flow. However, I'm not sure that suits the scope of this project.
I'm not sure if this is the best way to implement it, but it's fully functional. We could also create another class, something like
IMAP_OAUTH2(IMAP)
that could also handle the entire authorization flow. However, I'm not sure that suits the scope of this project.Any feedback is appreciated.