Commit 7b90af6
authored
Feat/update state manager (#778)
* feat(TeamStateManager): add support for WASM and Server modes
- Implemented ITeamStateManager interface for managing team states.
- Added registration logic for team state manager in ServiceCollectionExtensions.cs.
- Created ServerTeamStateManager and WasmTeamStateManager to handle team state management in respective environments.
- Updated User.razor to utilize the new team state manager for fetching user team information.
* feat:update WasmTeamStateManager refresh token
* fix:navigate page
* fix(WasmTeamStateManager): update token refresh logging
Updated the log message for token refresh failure and removed the null check for newToken. The logic now directly navigates to the page refresh on token refresh failure, simplifying the code.
* feat: Remove team state retrieval methods
Removed the methods for retrieving and clearing the current team ID from the ITeamStateManager interface and its implementations in ServerTeamStateManager and WasmTeamStateManager. The User.razor file was updated to directly use MasaUser.CurrentTeamId instead of relying on the authentication state for the current team ID.1 parent 4378062 commit 7b90af6
File tree
4 files changed
+3
-83
lines changed- src/Masa.Stack.Components
- Infrastructure/Identity
4 files changed
+3
-83
lines changedLines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 14 | + | |
Lines changed: 1 addition & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 27 | + | |
Lines changed: 0 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 80 | | |
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 153 | + | |
162 | 154 | | |
163 | 155 | | |
164 | 156 | | |
165 | 157 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 158 | | |
172 | 159 | | |
173 | 160 | | |
| |||
0 commit comments