Skip to content

Commit 9a7a5cb

Browse files
committed
build_fix
1 parent ddc6e85 commit 9a7a5cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/develop/dapps/ton-connect/sign.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,13 @@ export function useBackendAuth() {
153153
```
154154
</details>
155155

156+
157+
156158
## Backend Example
159+
157160
<details>
158161
<summary>Check if Proof Valid (Next.js)</summary>
162+
159163
```tsx
160164
'use server'
161165
import {Address, Cell, contractAddress, loadStateInit, TonClient4} from '@ton/ton'
@@ -198,6 +202,7 @@ export async function isValid(proof, account) {
198202

199203
```
200204
</details>
205+
201206
You can review our [example](https://github.com/ton-connect/demo-dapp-with-react-ui/tree/master/src/server) showcasing the key methods:
202207
- [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
203208
- [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.

0 commit comments

Comments
 (0)