This commit is contained in:
parent
40b8e020a3
commit
db25ceb0b5
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user