Skip to main content

Types

AuthResult

success: A boolean indicating the success of the operation. message: A message providing additional information about the operation.

AuthUser

email: The email address of the user. blocked: A boolean indicating whether the user is blocked. lastlogin: The timestamp of the last login. createdAt: The timestamp of the user account creation.

Queries

getUserByEmail(email: String!): AuthUser Retrieve user information by email.

Example

Mutations

changePassword(email: String!, newPassword: String!): AuthResult

Change the user’s password.

sendPasswordResetEmail(email: String!): AuthResult

Send a password reset email to the user.

unblockUser(email: String!): AuthResult

Unblock a blocked user.