12 lines
256 B
Go
12 lines
256 B
Go
package db
|
|
|
|
var authMap = map[string]AuthType{
|
|
string(AuthTypePassword): AuthTypePassword,
|
|
string(AuthTypeDiscord): AuthTypeDiscord,
|
|
string(AuthTypeGoogle): AuthTypeGoogle,
|
|
}
|
|
|
|
func AuthTypeFromString(input string) AuthType {
|
|
return authMap[input]
|
|
}
|