feat:allow signup without verification (#39)

* fix: add disable basic auth check in resolvers

* feat: allow signup without email verification

Resolves #32
This commit is contained in:
Lakhan Samani
2021-07-28 15:43:08 +05:30
committed by GitHub
parent 0a2efe048b
commit a0171ad500
10 changed files with 344 additions and 281 deletions

View File

@@ -2,6 +2,13 @@
package model
type AuthResponse struct {
Message string `json:"message"`
AccessToken *string `json:"accessToken"`
AccessTokenExpiresAt *int64 `json:"accessTokenExpiresAt"`
User *User `json:"user"`
}
type Error struct {
Message string `json:"message"`
Reason string `json:"reason"`
@@ -16,13 +23,6 @@ type LoginInput struct {
Password string `json:"password"`
}
type LoginResponse struct {
Message string `json:"message"`
AccessToken *string `json:"accessToken"`
AccessTokenExpiresAt *int64 `json:"accessTokenExpiresAt"`
User *User `json:"user"`
}
type Meta struct {
Version string `json:"version"`
IsGoogleLoginEnabled bool `json:"isGoogleLoginEnabled"`