Skip to content

Commit

Permalink
Fix sep-10 auth with TS (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc authored Sep 11, 2023
1 parent 183f702 commit 9aaa4d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/building-apps/wallet/sep10.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ suspend fun getAuthToken(): AuthToken {
```

```typescript
let authKey = Keypair.fromSecret("my secret key");
const authKey = SigningKeypair.fromSecret("my secret key");
const sep10 = await anchor.sep10();

const getAuthToken = async (): Promise<AuthToken> => {
return anchor.sep10().authenticate({ authKey });
};
const authToken = await sep10.authenticate({ accountKp: authKey });
```

```dart
Expand Down

0 comments on commit 9aaa4d5

Please sign in to comment.