Skip to content

Commit

Permalink
chore: biometric manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 4d7dcbe commit 72fa919
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@cartridge/connector": "^0.3.41",
"@cartridge/controller": "^0.3.41",
"@dojoengine/torii-wasm": "^1.0.0-alpha.5",
"@twa-dev/sdk": "^6.7.1",
"@twa-dev/sdk": "^7.8.0",
"@starknet-react/chains": "^0.1.7",
"@starknet-react/core": "^2.9.0",
"@vitejs/plugin-basic-ssl": "^1.0.1",
Expand Down
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import './App.css'
import WebApp from '@twa-dev/sdk'
import { useConnect, useDisconnect, useAccount } from '@starknet-react/core'

WebApp.BiometricManager.init()
WebApp.SettingsButton.isVisible = true

function App() {
const [count] = useState(0)

Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// import basicSsl from '@vitejs/plugin-basic-ssl';

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
17 changes: 10 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@
"@noble/hashes" "~1.3.3"

"@starknet-io/types-js@^0.7.7", "starknet-types-07@npm:@starknet-io/types-js@^0.7.7":
name starknet-types-07
version "0.7.7"
resolved "https://registry.yarnpkg.com/@starknet-io/types-js/-/types-js-0.7.7.tgz#444be5e4e585ec6f599d42d3407280d98b2dfdf8"
integrity sha512-WLrpK7LIaIb8Ymxu6KF/6JkGW1sso988DweWu7p5QY/3y7waBIiPvzh27D9bX5KIJNRDyOoOVoHVEKYUYWZ/RQ==
Expand Down Expand Up @@ -496,15 +497,17 @@
dependencies:
"@tanstack/query-core" "5.52.0"

"@twa-dev/sdk@^6.7.1":
version "6.7.1"
resolved "https://registry.yarnpkg.com/@twa-dev/sdk/-/sdk-6.7.1.tgz#00531b7958e6ea1ce6a03931e13ef9afd5add55c"
"@twa-dev/sdk@^7.8.0":
version "7.8.0"
resolved "https://registry.yarnpkg.com/@twa-dev/sdk/-/sdk-7.8.0.tgz#a21d3791b836717057fe6045a8e37d1bcfde3c1b"
integrity sha512-fVnTSqef6UL2cUU/li8z+KEnswBsvVqA1yjNYBKTy4BRcOs6TVjqHMUgVqn9PJJqyCN4Z0QWyA0y0nprYRVvCw==
dependencies:
"@twa-dev/types" "^6.7.0"
"@twa-dev/types" "^7.8.0"

"@twa-dev/types@^6.7.0":
version "6.7.0"
resolved "https://registry.yarnpkg.com/@twa-dev/types/-/types-6.7.0.tgz#0a584202ff376195b46b907bd8348de642a1c103"
"@twa-dev/types@^7.8.0":
version "7.8.0"
resolved "https://registry.yarnpkg.com/@twa-dev/types/-/types-7.8.0.tgz#1b0d7992913d686ef98447b082891ff45796b637"
integrity sha512-nZR1j3Q+YlqLw1WoQXvmi5kdaKSw3C9ChFeycdFKqSnDZb/rqT3qJ3h6wGTyZuxGJNf+JB6bY1pGRrzYfTx3WQ==

"@types/json-schema@^7.0.12":
version "7.0.12"
Expand Down

0 comments on commit 72fa919

Please sign in to comment.