add comments for Oauth interface (#4038)
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
bf0e6f4b06
commit
a8325d5630
|
|
@ -41,6 +41,7 @@ type User struct {
|
|||
Avatar string
|
||||
}
|
||||
|
||||
// Oauth interface for oauth2
|
||||
type Oauth interface {
|
||||
AuthCodeURL() (string, error)
|
||||
Exchange(string) (*oauth2.Token, error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue