is-registered-1

This commit is contained in:
2024-01-05 14:58:16 +03:00
parent 58a91814ae
commit dd4b41674a
3 changed files with 50 additions and 0 deletions

View File

@@ -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)