Skip to content

Commit

Permalink
docs: fix some of the signer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Aug 28, 2024
1 parent d86e2b3 commit 5fa07c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions site/pages/core/authenticate-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ const bundle = new URLSearchParams(window.location.search).get("bundle");
if (!bundle) {
throw new Error("No bundle found in URL");
}

await signer.authenticate({ type: "email", bundle });
```

```ts twoslash [client.ts] filename="client.ts"
```ts twoslash [config.ts] filename="config.ts"
// [!include ~/shared/core/config.ts]
```

Expand All @@ -60,7 +61,7 @@ It's important that you verify this email to be correct first! Otherwise, if a u
:::code-group

```ts twoslash [example.ts]
import { config } from "./config";
import { config } from "./config.js";
import { getSigner } from "@account-kit/core";

const signer = getSigner(config);
Expand All @@ -77,7 +78,7 @@ await signer.authenticate({
});
```

```ts twoslash [client.ts] filename="client.ts"
```ts twoslash [config.ts] filename="config.ts"
// [!include ~/shared/core/config.ts]
```

Expand Down
1 change: 1 addition & 0 deletions site/pages/core/sponsor-gas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ If you want more control over which UOs are sponsored, then you can set the poli

```ts twoslash [example.ts]
import { watchSmartAccountClient } from "@account-kit/core";
import { config } from "./config";

// How you actually store this state variable
// depends on the framework you're using
Expand Down

0 comments on commit 5fa07c6

Please sign in to comment.