add comments for Oauth interface (#4038)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2025-05-07 12:23:45 +08:00 committed by GitHub
parent bf0e6f4b06
commit a8325d5630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ type User struct {
Avatar string
}
// Oauth interface for oauth2
type Oauth interface {
AuthCodeURL() (string, error)
Exchange(string) (*oauth2.Token, error)