# Interface: StaySignedInStore

Defined in: [packages/core/src/session/stay-signed-in.ts:91](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L91)

## Methods

### choice()

```ts
choice(): StaySignedIn;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:93](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L93)

The chosen length

#### Returns

[`StaySignedIn`](https://minca.dev/api/session/type-aliases/StaySignedIn.md)

***

### forget()

```ts
forget(): Promise<void>;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:103](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L103)

Deletes the kept key: the next visit asks to unlock

#### Returns

`Promise`\<`void`\>

***

### recall()

```ts
recall(place): Promise<
  | {
  accountId: string;
  seed: Uint8Array;
}
| null>;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:99](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L99)

The seed this device kept, if still in date and for the kind of place that is open. Using it pushes the expiry forward.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `place` | `"folder"` \| `"browser"` |

#### Returns

`Promise`\<
  \| \{
  `accountId`: `string`;
  `seed`: `Uint8Array`;
\}
  \| `null`\>

***

### remember()

```ts
remember(
   accountId, 
   place, 
   seed
): Promise<void>;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:97](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L97)

Keeps the seed on this device after an unlock, when the choice allows it

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `accountId` | `string` |
| `place` | `"folder"` \| `"browser"` |
| `seed` | `Uint8Array` |

#### Returns

`Promise`\<`void`\>

***

### setChoice()

```ts
setChoice(choice): Promise<void>;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:95](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L95)

Changes it. "Ask every time" forgets the current one straight away; a new length applies from now.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `choice` | [`StaySignedIn`](https://minca.dev/api/session/type-aliases/StaySignedIn.md) |

#### Returns

`Promise`\<`void`\>

***

### until()

```ts
until(): Date | null;
```

Defined in: [packages/core/src/session/stay-signed-in.ts:101](https://github.com/leifriksheim/minca/blob/main/core/src/session/stay-signed-in.ts#L101)

When the kept sign-in runs out, or null when there is none

#### Returns

`Date` \| `null`
