Open scruzin opened 5 days ago
We could use an interface that implements at least the following methods:
type OAuther interface { AuthHandler(w http.ResponseWriter, r *http.Request) error CallbackHandler(w http.ResponseWriter, r *http.Request) error }
These handlers would be passed the arguments from the generic endpoint, depending on the oauth implementation being used.
I think we can share a great deal of the implementation too, not just the interface.
I think functional options might be the way to go.
We could use an interface that implements at least the following methods:
These handlers would be passed the arguments from the generic endpoint, depending on the oauth implementation being used.