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

# my.isUserLogin

> Check whether the current user is logged in.

Checks whether the current user is logged in to the Rebell SuperApp. This JSAPI is also available to AI Mini Programs.

## Parameters

None (besides the standard `success`, `fail` and `complete` callbacks).

## Success Callback

| Property | Type | Description |
| - | - | - |
| success | Boolean | Whether the API call succeeded |
| userLogin | Boolean | `true` if the user is logged in, `false` otherwise |

`success` describes the result of the call; use `userLogin` to determine the login status after a successful call.

### Response Examples

```json Logged in theme={null}
{
  "success": true,
  "userLogin": true
}
```

```json Not logged in theme={null}
{
  "success": true,
  "userLogin": false
}
```

## Code Example

```javascript theme={null}
my.isUserLogin({
  success: (res) => {
    if (res.success && res.userLogin) {
      // User is logged in: you can request authorization with my.getAuthCode
    } else {
      // User is not logged in
    }
  }
});
```

## Related APIs

> [card] [my.getAuthCode](https://docs.rebellapp.com/jsapi/open-capabilities/my.getAuthCode.md)
>
> Request user authorization

> [card] [User Authorization](https://docs.rebellapp.com/mini-app/backend-authentication.md#user-authorization)
>
> Authorization flow


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.