# app.chavatar.auth.getSession

> Published by [chavatar.app](https://lexicon.garden/identity/did:web:chavatar.app)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.auth.getSession)
- [Documentation](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.auth.getSession/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.auth.getSession/examples)

## Definitions

### `app.chavatar.auth.getSession`

**Type**: `query`

Bearer トークンからセッションを確認し、DID を返す。

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | 認証されたユーザーの DID |

## Raw Schema

```json
{
  "id": "app.chavatar.auth.getSession",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "maxLength": 2048,
              "description": "認証されたユーザーの DID"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Bearer トークンからセッションを確認し、DID を返す。"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
