Commit ee5d3be
authored
Chore: adapter for thirdweb http client (#7180)
# Pull Request Description
Fix #6995
[web3 test-scene ](decentraland/sdk7-test-scenes#51)
## What does this PR change?
This PR replaces ThirdWeb http client with our own based on the WebRequestController. Main class to review is `DclThirdwebHttpClient.cs`.
Additionally it
- adds timeout for auto-login
- handle auto-login for the edge case when user enters with cached ThirdWeb identity but feature-flag for this feature is disabled
- added cancelations for ThirdWeb async methods
## Test Instructions
### Test Auth 1
smoke test on OTP login flow
- normal otp login flow (happy path)
- login/logout, changing accounts
- auto-login for both OTP and Dapp accounts
### Test Auth 2
- login with OTP
- close APP
- open APP with disabled "alfa-email-otp-auth" feature flag
- verify it takes you to new dapp login
### Test meta-transactions
- test gifting
- test donations - 9,49 in zone (you will need MANA on Sepolia to donate)1 parent f1c53f0 commit ee5d3be
11 files changed
Lines changed: 332 additions & 110 deletions
File tree
- Explorer
- Assets/DCL
- Infrastructure/Global/Dynamic
- Web3/Authenticators
- Implementations
- ThirdWeb
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
| 227 | + | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
Lines changed: 0 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 5 | | |
41 | 6 | | |
42 | 7 | | |
| |||
55 | 20 | | |
56 | 21 | | |
57 | 22 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 23 | | |
64 | 24 | | |
65 | 25 | | |
66 | 26 | | |
67 | 27 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 28 | | |
74 | 29 | | |
75 | 30 | | |
| |||
Lines changed: 34 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 24 | + | |
38 | 25 | | |
39 | 26 | | |
40 | 27 | | |
| |||
43 | 30 | | |
44 | 31 | | |
45 | 32 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 33 | + | |
49 | 34 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 35 | + | |
| 36 | + | |
53 | 37 | | |
54 | 38 | | |
55 | 39 | | |
| |||
63 | 47 | | |
64 | 48 | | |
65 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
66 | 57 | | |
67 | 58 | | |
68 | 59 | | |
69 | | - | |
| 60 | + | |
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
| |||
75 | 66 | | |
76 | 67 | | |
77 | 68 | | |
78 | | - | |
| 69 | + | |
79 | 70 | | |
80 | 71 | | |
81 | 72 | | |
| |||
92 | 83 | | |
93 | 84 | | |
94 | 85 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | | - | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 112 | | |
121 | 113 | | |
0 commit comments