fix: refactor schema for open id claim standards
This commit is contained in:
21
server/enum/signup_methods.go
Normal file
21
server/enum/signup_methods.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package enum
|
||||
|
||||
type SignupMethod int
|
||||
|
||||
const (
|
||||
BasicAuth SignupMethod = iota
|
||||
MagicLink
|
||||
Google
|
||||
Github
|
||||
Facebook
|
||||
)
|
||||
|
||||
func (d SignupMethod) String() string {
|
||||
return [...]string{
|
||||
"basic_auth",
|
||||
"magic_link",
|
||||
"google",
|
||||
"github",
|
||||
"facebook",
|
||||
}[d]
|
||||
}
|
Reference in New Issue
Block a user