Commit f80d198
committed
fix(oauth): Add atomic status check to deny action
Use the same atomic filter().update() pattern as approval to prevent
race condition where denial could overwrite an already-approved device
code, causing inconsistent state (ApiAuthorization exists but client
receives access_denied).1 parent 24aa362 commit f80d198
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
0 commit comments