# cafe.dummy.lsky.getSession

> Published by [lsky-publisher.dummy.to](https://lexicon.garden/identity/did:plc:yuilafccwsaj7a4qkkzhttdn)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getSession)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getSession/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getSession/examples)

## Definitions

### `cafe.dummy.lsky.getSession`

**Type**: `query`

Get the authenticated user's lsky-specific state: profile, onboarding status. The user's DID and handle are resolved from the inter-service auth JWT. This is the first call the app should make after login to hydrate lsky user context.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `handle` | `string` | Yes |  |
| `person` | `ref` → `cafe.dummy.lsky.defs#profileView` | No | The user's profile, if they have onboarded. |
| `onboarded` | `boolean` | Yes |  |

#### Errors

- **AuthenticationRequired**: No valid inter-service auth JWT was provided.

## Raw Schema

```json
{
  "id": "cafe.dummy.lsky.getSession",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired",
          "description": "No valid inter-service auth JWT was provided."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "handle",
            "onboarded"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "handle": {
              "type": "string"
            },
            "person": {
              "ref": "cafe.dummy.lsky.defs#profileView",
              "type": "ref",
              "description": "The user's profile, if they have onboarded."
            },
            "onboarded": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Get the authenticated user's lsky-specific state: profile, onboarding status. The user's DID and handle are resolved from the inter-service auth JWT. This is the first call the app should make after login to hydrate lsky user context."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
