Skip to content

Commit

Permalink
debug domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 5d9273d commit 4743fef
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ function App() {
</button>
</div>

<button onClick={() => {
WebApp.openLink('https://ton.org/dev')
}}>
open link
</button>
<button onClick={() => {
WebApp.BiometricManager.init(() => {
WebApp.showConfirm('give data', () => WebApp.BiometricManager.requestAccess({
Expand All @@ -85,8 +80,8 @@ function App() {
const publicKeyCredentialCreationOptions = {
challenge: new Uint8Array(32), // You should generate this on your server
rp: {
name: "Your App Name",
id: "your-domain.com",
name: "Beast Slayers",
id: "beast-slayers.vercel.app",
},
user: {
id: new Uint8Array(16), // You should generate a unique user ID
Expand All @@ -107,7 +102,7 @@ function App() {

setCredentials(credentials)
}}>
{JSON.stringify(credentials) ?? 'create'}
{credentials ? JSON.stringify(credentials) : 'create'}
</button>
<div className="card">
<button onClick={() => WebApp.BiometricManager.openSettings()}>
Expand Down

0 comments on commit 4743fef

Please sign in to comment.