Closed tsmethurst closed 3 years ago
This is how it looks to implement these interfaces from a library-user point of view:
https://github.com/superseriousbusiness/gotosocial/blob/main/internal/oauth/tokenstore.go
https://github.com/superseriousbusiness/gotosocial/blob/main/internal/oauth/clientstore.go
I just made a release of a forked version of this library that I'm using in a project:
https://github.com/superseriousbusiness/oauth2/releases/tag/v4.3.0-SSB
Basically, it changes some structs into interfaces to allow library users to implement their own Client and ClientStores that use database rather than in-memory storage.
Any interest in me making a PR of this back to here?
It would solve the following: