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

# useMyMember

Hook to get the data of the current user in a stream.

## Imports

```ts theme={null}
import { useMyMember } from '@towns-protocol/react-sdk'
```

## Definition

```ts theme={null}
function useMyMember(
  streamId: string,
  config?: ObservableConfig.FromObservable<Member>,
): {
    id: string;
    userId: string;
    streamId: string;
    initialized: boolean;
    username: string;
    isUsernameConfirmed: boolean;
    isUsernameEncrypted: boolean;
    displayName: string;
    isDisplayNameEncrypted?: boolean;
    ensAddress?: string;
    nft?: NftModel;
    membership?: MembershipOp;
    appAddress?: string;
}
```

**Source:** [useMyMember](https://github.com/towns-protocol/towns/blob/main/packages/react-sdk/src/useMyMember.ts)

## Parameters

### streamId

* **Type:** `string`

The id of the stream to get the current user of.

### config

* **Type:** `ObservableConfig.FromObservable<Member>`
* **Optional**

Configuration options for the observable.

## Return Type

The MemberModel of the current user.

```ts theme={null}
{
    id: string;
    userId: string;
    streamId: string;
    initialized: boolean;
    username: string;
    isUsernameConfirmed: boolean;
    isUsernameEncrypted: boolean;
    displayName: string;
    isDisplayNameEncrypted?: boolean;
    ensAddress?: string;
    nft?: NftModel;
    membership?: MembershipOp;
    appAddress?: string;
}
```
