Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .llms-snapshots/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -951,15 +951,19 @@ import { signIn } from "@junobuild/core";await signIn({ nfid: { options: {

## Sign-out

You can end a user's session by logging them out.
You can end a user's session, no matter which provider they used to sign in, by logging them out.

```
import { signOut } from "@junobuild/core";await signOut();
```

**Note:**
By default, the page will automatically reload after a successful sign-out. This is a common pattern in logout flows that ensures the application restarts from a clean state.

If you wish to opt out, the library does clear its internal state and authentication before the reload, and you can use the `windowReload` option set to `false`.

This will clear the sign-in information stored in IndexedDB.
```
import { signOut } from "@junobuild/core";await signOut({ windowReload: false });
```

---

Expand Down
12 changes: 8 additions & 4 deletions docs/build/authentication/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,23 @@ await signIn({

## Sign-out

You can end a user's session by logging them out.
You can end a user's session, no matter which provider they used to sign in, by logging them out.

```typescript
import { signOut } from "@junobuild/core";

await signOut();
```

:::note
By default, the page will automatically reload after a successful sign-out. This is a common pattern in logout flows that ensures the application restarts from a clean state.

This will clear the sign-in information stored in IndexedDB.
If you wish to opt out, the library does clear its internal state and authentication before the reload, and you can use the `windowReload` option set to `false`.

:::
```typescript
import { signOut } from "@junobuild/core";

await signOut({ windowReload: false });
```

---

Expand Down