Skip to content

Commit

Permalink
build_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reveloper committed Sep 18, 2024
1 parent ddc6e85 commit 9a7a5cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/develop/dapps/ton-connect/sign.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ export function useBackendAuth() {
```
</details>



## Backend Example

<details>
<summary>Check if Proof Valid (Next.js)</summary>

```tsx
'use server'
import {Address, Cell, contractAddress, loadStateInit, TonClient4} from '@ton/ton'
Expand Down Expand Up @@ -198,6 +202,7 @@ export async function isValid(proof, account) {

```
</details>

You can review our [example](https://github.com/ton-connect/demo-dapp-with-react-ui/tree/master/src/server) showcasing the key methods:
- [generatePayload](https://github.com/ton-connect/demo-dapp-with-react-ui/blob/master/src/server/api/generate-payload.ts): Generates a payload for ton proof
- [checkProof](https://github.com/ton-connect/demo-dapp-with-react-ui/blob/master/src/server/api/check-proof.ts): Checks the proof and returns an access token.
Expand Down

0 comments on commit 9a7a5cb

Please sign in to comment.