is-registered-1
This commit is contained in:
@@ -610,6 +610,7 @@ input GetUserRequest {
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
is_registered(email: String): AuthResponse! # custom api
|
||||
signup(params: SignUpInput!): AuthResponse!
|
||||
# Deprecated from v1.2.0
|
||||
mobile_signup(params: MobileSignUpInput): AuthResponse!
|
||||
|
@@ -12,6 +12,11 @@ import (
|
||||
"github.com/authorizerdev/authorizer/server/resolvers"
|
||||
)
|
||||
|
||||
// Signup is the resolver for the signup field.
|
||||
func (r *queryResolver) IsRegistered(ctx context.Context, email string) (*model.AuthResponse, error) {
|
||||
return resolvers.IsRegisteredResolver(ctx, email)
|
||||
}
|
||||
|
||||
// Signup is the resolver for the signup field.
|
||||
func (r *mutationResolver) Signup(ctx context.Context, params model.SignUpInput) (*model.AuthResponse, error) {
|
||||
return resolvers.SignupResolver(ctx, params)
|
||||
|
Reference in New Issue
Block a user