Commit e616287
fix(openIDConnect scheme): Check token expiration before id_token (#1684)
* fix(openIDConnect scheme): Check token expiration before id_token
During an Axios call, the token is not automatically refreshed because it relies on the tokenExpired return of the scheme check function, which first checks id_token which often expires at the same time, and therefore does not detect any problems.
By checking first the token expiration before the id_token, the problem is solved
Related issue :
#1370
* Fix linting error
* Added comment explaining the order / reasoning
#1684 (comment)
* Adjusted comment to be clearer about the exact order
* One more comment edit
* Fixing linting error (again)
* Fix linting error Check failure on line 122 in src/schemes/openIDConnect.ts
Co-authored-by: Dylan Geenen <58949478+dygeenen@users.noreply.github.com>
Co-authored-by: Steven Hollingsworth <shollingsworth@barracuda.com>1 parent 532b3d6 commit e616287
1 file changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 116 | | |
123 | 117 | | |
124 | 118 | | |
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
128 | 140 | | |
129 | 141 | | |
130 | 142 | | |
| |||
0 commit comments