Files
authorizer/server/enum/signUpMethod.go

22 lines
255 B
Go
Raw Normal View History

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