Commit 38be3fb
committed
Don't log invalid token in sentry
Sentry should be for exceptional errors. Having this reported to sentry was creating a lot of noise (~20k events a day) and using up a large proportion of our Sentry limits. If in the future we want to track this, we should instead log it or track unauthorized responses as a proxy.
Before doing this I did some testing to see if the tokens were long lasting and are automatically refresh - as far as I can see they are and wasn't able to reproduce any issues by leaving tabs open or by offloading tabs. This would point to most tokens being invalid due to expiry. This could be due to the refresh token not working in inactive tabs.1 parent a936104 commit 38be3fb
2 files changed
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
137 | 126 | | |
138 | 127 | | |
139 | 128 | | |
| |||
0 commit comments