mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 23:54:10 +00:00
12 lines
244 B
Go
12 lines
244 B
Go
|
package auth
|
||
|
|
||
|
import "github.com/1f349/lavender/database"
|
||
|
|
||
|
type LoginProvider interface {
|
||
|
AttemptLogin(username, password string) (database.User, error)
|
||
|
}
|
||
|
|
||
|
type OAuthProvider interface {
|
||
|
AttemptLogin(username string) (database.User, error)
|
||
|
}
|