package auth type Authenticator interface { ID() string Name() string Exists(username string) bool Find(userid string) *User Login(username, password string) (*User, error) Register(username, password string, data map[string]string) (*User, error) }