You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/dapps/ton-connect/sign.mdx
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ function App() {
78
78
}
79
79
```
80
80
81
-
2. Implement authentication on backend:
81
+
2. Implement authentication on the frontend with backend integration:
82
82
83
83
<details>
84
84
<summary>Example</summary>
@@ -152,6 +152,12 @@ export function useBackendAuth() {
152
152
```
153
153
</details>
154
154
155
+
## Backend Example
156
+
157
+
You can review our [example](https://github.com/ton-connect/demo-dapp-with-react-ui/tree/master/src/server) showcasing the key methods:
158
+
-[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
159
+
-[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.
160
+
155
161
## Concept Explanation
156
162
157
163
If `TonProofItem` is requested, wallet proves ownership of the selected account’s key. The signed message is bound to:
0 commit comments