mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 05:15:42 +00:00
Make keycard login faster
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
This commit is contained in:
parent
cf0afbca14
commit
f91a69c6b0
@ -54,7 +54,7 @@
|
|||||||
"react-native-safe-area-view": "0.9.0",
|
"react-native-safe-area-view": "0.9.0",
|
||||||
"react-native-securerandom": "git+https://github.com/status-im/react-native-securerandom.git#0.1.1-2",
|
"react-native-securerandom": "git+https://github.com/status-im/react-native-securerandom.git#0.1.1-2",
|
||||||
"react-native-splash-screen": "3.1.1",
|
"react-native-splash-screen": "3.1.1",
|
||||||
"react-native-status-keycard": "git+https://github.com/status-im/react-native-status-keycard.git#v2.3.9",
|
"react-native-status-keycard": "git+https://github.com/status-im/react-native-status-keycard.git#v2.3.10",
|
||||||
"react-native-svg": "6.5.2",
|
"react-native-svg": "6.5.2",
|
||||||
"react-native-tcp": "git+https://github.com/status-im/react-native-tcp.git#v3.3.0-1-status",
|
"react-native-tcp": "git+https://github.com/status-im/react-native-tcp.git#v3.3.0-1-status",
|
||||||
"react-native-udp": "git+https://github.com/status-im/react-native-udp.git#2.3.1-1",
|
"react-native-udp": "git+https://github.com/status-im/react-native-udp.git#2.3.1-1",
|
||||||
|
@ -5845,9 +5845,9 @@ react-native-splash-screen@3.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.1.1.tgz#1a4e46c9fdce53ff52af2a2cb4181788c4e30b30"
|
resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.1.1.tgz#1a4e46c9fdce53ff52af2a2cb4181788c4e30b30"
|
||||||
integrity sha512-PU2YocOSGbLjL9Vgcq/cwMNuHHKNjjuPpa1IPMuWo+6EB/fSZ5VOmxSa7+eucQe3631s3NhGuk3eHKahU03a4Q==
|
integrity sha512-PU2YocOSGbLjL9Vgcq/cwMNuHHKNjjuPpa1IPMuWo+6EB/fSZ5VOmxSa7+eucQe3631s3NhGuk3eHKahU03a4Q==
|
||||||
|
|
||||||
"react-native-status-keycard@git+https://github.com/status-im/react-native-status-keycard.git#v2.3.9":
|
"react-native-status-keycard@git+https://github.com/status-im/react-native-status-keycard.git#v2.3.10":
|
||||||
version "2.3.9"
|
version "2.3.10"
|
||||||
resolved "git+https://github.com/status-im/react-native-status-keycard.git#d6378e434fcf06ca23f8c373a4d44d5a69c23db5"
|
resolved "git+https://github.com/status-im/react-native-status-keycard.git#a6da0a7889fdbc8cdf61771cf1b989c5cfb14b08"
|
||||||
|
|
||||||
react-native-svg@6.5.2:
|
react-native-svg@6.5.2:
|
||||||
version "6.5.2"
|
version "6.5.2"
|
||||||
|
@ -701,10 +701,13 @@
|
|||||||
|
|
||||||
(fx/defn wait-for-card-tap
|
(fx/defn wait-for-card-tap
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx}]
|
||||||
(fx/merge cofx
|
(let [card-connected? (get-in db [:hardwallet :card-connected?])]
|
||||||
{:db (-> db
|
(if card-connected?
|
||||||
(assoc-in [:hardwallet :on-card-read] :hardwallet/login-with-keycard))}
|
(login-with-keycard cofx false)
|
||||||
(navigation/navigate-to-cofx :hardwallet-connect nil)))
|
(fx/merge cofx
|
||||||
|
{:db (-> db
|
||||||
|
(assoc-in [:hardwallet :on-card-read] :hardwallet/login-with-keycard))}
|
||||||
|
(navigation/navigate-to-cofx :hardwallet-connect nil)))))
|
||||||
|
|
||||||
; PIN enter steps:
|
; PIN enter steps:
|
||||||
; login - PIN is used to login
|
; login - PIN is used to login
|
||||||
|
Loading…
x
Reference in New Issue
Block a user