diff --git a/server/graph/schema.graphqls b/server/graph/schema.graphqls index 46a68a9..9ad1b4b 100644 --- a/server/graph/schema.graphqls +++ b/server/graph/schema.graphqls @@ -651,7 +651,7 @@ type Query { meta: Meta! session(params: SessionQueryInput): AuthResponse! profile: User! - is_registered(email: String): AuthResponse! # custom api + is_registered(email: String!): Response! # custom api validate_jwt_token(params: ValidateJWTTokenInput!): ValidateJWTTokenResponse! validate_session(params: ValidateSessionInput): ValidateSessionResponse! # admin only apis diff --git a/server/graph/schema.resolvers.go b/server/graph/schema.resolvers.go index 83c53b3..c115155 100644 --- a/server/graph/schema.resolvers.go +++ b/server/graph/schema.resolvers.go @@ -12,7 +12,7 @@ import ( "github.com/authorizerdev/authorizer/server/resolvers" ) -// Signup is the resolver for the signup field. +// IsRegistered is the resolver for the signup field. func (r *queryResolver) IsRegistered(ctx context.Context, email string) (*model.Response, error) { return resolvers.IsRegisteredResolver(ctx, email) }