Implement login resolver (#15)

* add sign_up_method to users table

* add session store

* implement login resolver
This commit is contained in:
Lakhan Samani
2021-07-15 00:13:19 +05:30
committed by GitHub
parent 336fe10ca4
commit 27264c6e29
20 changed files with 874 additions and 884 deletions

View File

@@ -3,7 +3,7 @@ package enum
type SignupMethod int
const (
Basic SignupMethod = iota
BasicAuth SignupMethod = iota
MagicLink
Google
Github
@@ -12,8 +12,8 @@ const (
func (d SignupMethod) String() string {
return [...]string{
"basic",
"magiclink",
"basic_auth",
"magic_link",
"google",
"github",
"facebook",