we have to do this for both wallet and pake login, so moving it to a helper fn to avoid duplicating code
Depends on D4286
Paths
| Differential D4289 Authored by varun on Jun 17 2022, 1:52 PM.
Details Summary we have to do this for both wallet and pake login, so moving it to a helper fn to avoid duplicating code Depends on D4286 Test Plan cargo build, further testing done in functions that leverage this helper
Diff Detail
Event TimelineHerald added subscribers: • abosh, atul, • adrian, ashoat. · View Herald TranscriptJun 17 2022, 1:52 PM2022-06-17 13:52:26 (UTC-7) varun edited the summary of this revision. (Show Details)Jun 17 2022, 1:54 PM2022-06-17 13:54:41 (UTC-7) varun added a parent revision: D4286: [services][identity] add un-signed SIWE message to WalletLoginRequest. Harbormaster completed remote builds in B9792: Diff 13555.Jun 17 2022, 1:57 PM2022-06-17 13:57:32 (UTC-7) Harbormaster completed remote builds in B9793: Diff 13556.Jun 17 2022, 2:02 PM2022-06-17 14:02:35 (UTC-7) This revision now requires changes to proceed.Jun 17 2022, 2:13 PM2022-06-17 14:13:00 (UTC-7) Comment Actions fix bug
Harbormaster completed remote builds in B9794: Diff 13557.Jun 17 2022, 2:27 PM2022-06-17 14:27:55 (UTC-7) This revision is now accepted and ready to land.Jun 23 2022, 8:08 AM2022-06-23 08:08:49 (UTC-7) Closed by commit rCOMM3c3b3dac217f: [services][identity] subroutine for generating token and writing it to db (authored by varun). · Explain WhyJun 23 2022, 10:11 AM2022-06-23 10:11:53 (UTC-7) This revision was automatically updated to reflect the committed changes. Comment Actions Whatever was landed wasn't the latest revision of this diff + doesn't build. Going to revert commit on master, this diff will need to be re-opened Comment Actions error[E0432]: unresolved import `crate::token::AccessToken` --> src/service.rs:11:20 | 11 | use crate::token::{AccessToken, AuthType}; | ^^^^^^^^^^^ no `AccessToken` in `token` error[E0432]: unresolved import `proto::pake_login_response::Data::Token` --> src/service.rs:18:46 | 18 | login_response::Data::WalletLoginResponse, pake_login_response::Data::Token, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Token` in `service::proto::pake_login_response::Data` error[E0599]: no method named `put_token` found for struct `DatabaseClient` in the current scope --> src/service.rs:106:16 | 106 | match client.put_token(token.clone()).await { | ^^^^^^^^^ method not found in `DatabaseClient` | ::: src/database.rs:16:1 | 16 | pub struct DatabaseClient { | ------------------------- method `put_token` not found for this error[E0560]: struct `WalletLoginResponse` has no field named `token` --> src/service.rs:110:11 | 110 | token: token.token, | ^^^^^ `WalletLoginResponse` does not have this field | = note: available fields are: `access_token` Some errors have detailed explanations: E0432, E0560, E0599. For more information about an error, try `rustc --explain E0432`. error: could not compile `identity` due to 4 previous errors This revision is now accepted and ready to land.Jun 23 2022, 10:54 AM2022-06-23 10:54:16 (UTC-7) This revision was landed with ongoing or failed builds.Jun 23 2022, 11:09 AM2022-06-23 11:09:38 (UTC-7) Closed by commit rCOMM0ea4b3f1f831: [services][identity] subroutine for generating token and writing it to db (authored by varun). · Explain Why This revision was automatically updated to reflect the committed changes. Harbormaster completed remote builds in B9928: Diff 13727.Jun 23 2022, 11:14 AM2022-06-23 11:14:15 (UTC-7)
Revision Contents
Diff 13727 services/identity/src/service.rs
services/identity/src/token.rs
|
Does TouchableOpacity have a disabled prop? It would probably be less expensive to use that, instead of unmounting / remounting TouchableOpacity when it becomes enabled / disabled