setup project
This commit is contained in:
11
db/helpers.go
Normal file
11
db/helpers.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package db
|
||||
|
||||
var authMap = map[string]AuthType{
|
||||
string(AuthTypePassword): AuthTypePassword,
|
||||
string(AuthTypeDiscord): AuthTypeDiscord,
|
||||
string(AuthTypeGoogle): AuthTypeGoogle,
|
||||
}
|
||||
|
||||
func AuthTypeFromString(input string) AuthType {
|
||||
return authMap[input]
|
||||
}
|
||||
Reference in New Issue
Block a user