diff --git a/docs/develop/dapps/ton-connect/sign.mdx b/docs/develop/dapps/ton-connect/sign.mdx index 2ec9d37a77..adab4c33d4 100644 --- a/docs/develop/dapps/ton-connect/sign.mdx +++ b/docs/develop/dapps/ton-connect/sign.mdx @@ -153,9 +153,13 @@ export function useBackendAuth() { ``` + + ## Backend Example +
Check if Proof Valid (Next.js) + ```tsx 'use server' import {Address, Cell, contractAddress, loadStateInit, TonClient4} from '@ton/ton' @@ -198,6 +202,7 @@ export async function isValid(proof, account) { ```
+ 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.