1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-discord.git synced 2024-11-01 04:14:21 +00:00
cchat-discord/internal/discord/authenticate/authenticator.go

23 lines
459 B
Go
Raw Normal View History

2020-10-07 01:53:15 +00:00
package authenticate
import (
"errors"
"github.com/diamondburned/cchat"
)
var (
ErrMalformed = errors.New("malformed authentication form")
EnterPassword = errors.New("enter your password")
)
// FirstStageAuthenticators constructs a slice of newly made first stage
// authenticators.
func FirstStageAuthenticators() []cchat.Authenticator {
return []cchat.Authenticator{
NewTokenAuthenticator(),
NewLoginAuthenticator(),
NewDiscordLogin(),
2020-10-07 01:53:15 +00:00
}
}