Commit f542d7c
authored
[MM-67791] Use atomic token consumption for guest magic links (mattermost#35489)
#### Summary
Use the atomic `ConsumeOnce` pattern for guest magic link token consumption, consistent with how SSO code exchange tokens are already handled.
#### Ticket Link
https://mattermost.atlassian.net/browse/MM-67791
#### Release Note
```release-note
Improved token handling in the guest magic link authentication flow.
```1 parent 56f51d7 commit f542d7c
3 files changed
Lines changed: 14 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
142 | 137 | | |
143 | 138 | | |
144 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2687 | 2687 | | |
2688 | 2688 | | |
2689 | 2689 | | |
2690 | | - | |
2691 | | - | |
| 2690 | + | |
2692 | 2691 | | |
2693 | 2692 | | |
2694 | 2693 | | |
2695 | 2694 | | |
2696 | 2695 | | |
2697 | | - | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2698 | 2701 | | |
2699 | 2702 | | |
2700 | 2703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4446 | 4446 | | |
4447 | 4447 | | |
4448 | 4448 | | |
4449 | | - | |
4450 | | - | |
4451 | | - | |
4452 | | - | |
4453 | 4449 | | |
4454 | 4450 | | |
4455 | 4451 | | |
| |||
0 commit comments