Skip to content

Commit 8e78557

Browse files
authored
Fix/deeplink (#511)
1 parent 48858c3 commit 8e78557

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/mini-apps/core-concepts/authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function App() {
3030

3131
async function signIn() {
3232
try {
33-
const { token } = await sdk.actions.quickAuth();
33+
const { token } = await sdk.quickAuth.getToken();
3434
setToken(token);
3535

3636
// Use the token to authenticate the user and fetch authenticated user data

docs/mini-apps/core-concepts/navigation.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,13 @@ const ConditionalNavigation = () => {
243243
};
244244
```
245245

246+
## Launching Mini Apps from External Sources
247+
248+
### Deeplink Protocol
249+
Use the `cbwallet://miniapp?url=[YOUR_MINI_APP]` to launch your mini app directly from external sources like websites, QR codes, or other applications.
250+
251+
```HTML
252+
<a href="cbwallet://miniapp?url=https://yourminiapp.com">
253+
Launch Mini App
254+
</a>
255+
```

0 commit comments

Comments
 (0)