Files
authorizer/server/enum/signup_methods.go

22 lines
266 B
Go
Raw Normal View History

2021-07-12 23:52:16 +05:30
package enum
type SignupMethod int
const (
BasicAuth SignupMethod = iota
2021-12-24 07:20:22 +05:30
MagicLinkLogin
2021-07-12 23:52:16 +05:30
Google
Github
Facebook
)
func (d SignupMethod) String() string {
return [...]string{
"basic_auth",
2021-12-24 07:20:22 +05:30
"magic_link_login",
2021-07-12 23:52:16 +05:30
"google",
"github",
"facebook",
}[d]
}