> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codenullapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth0 endpoints for managing users

> success: A boolean indicating the success of the operation.

## *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*

```graphql theme={null}
query {
  getUserByEmail(email: "user@example.com") {
    email
    blocked
    lastlogin
    createdAt
  }
}
```

## Mutations

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

Change the user's password.

```graphql theme={null}
mutation {
  changePassword(email: "user@example.com", newPassword: "newPassword123") {
    success
    message
  }
}
```

#### `sendPasswordResetEmail(email: String!): AuthResult`

Send a password reset email to the user.

```graphql theme={null}
mutation {
  sendPasswordResetEmail(email: "user@example.com") {
    success
    message
  }
}
```

#### `unblockUser(email: String!): AuthResult`

Unblock a blocked user.

```graphql theme={null}
mutation {
  unblockUser(email: "user@example.com") {
    success
    message
  }
}
```
