Files
2022-10-09 08:19:40 +02:00

13 lines
217 B
Go

package auth
type Provider interface {
GetLoginURL(redirectURI, state string) string
Exchange(redirectURI, code string) (*User, error)
}
type User struct {
ID string
Name string
Attr map[string]interface{}
}