@wbce-d9/api 9.27.0 → 9.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,6 +195,12 @@ export class OpenIDAuthDriver extends LocalAuthDriver {
195
195
  }
196
196
  }
197
197
  catch (e) {
198
+ if (e.error === 'invalid_grant') {
199
+ // Remove invalid token from the user store
200
+ await this.usersService.updateOne(user.id, {
201
+ auth_data: null,
202
+ });
203
+ }
198
204
  throw handleError(e);
199
205
  }
200
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wbce-d9/api",
3
- "version": "9.27.0",
3
+ "version": "9.28.0",
4
4
  "description": "Directus is a real-time API and App dashboard for managing SQL database content",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -143,18 +143,18 @@
143
143
  "uuid-validate": "0.0.3",
144
144
  "vm2": "^3.9.19",
145
145
  "wellknown": "0.5.0",
146
- "@wbce-d9/app": "9.28.0",
147
- "@wbce-d9/exceptions": "9.26.3",
148
- "@wbce-d9/extensions-sdk": "9.26.5",
149
146
  "@wbce-d9/constants": "9.26.3",
147
+ "@wbce-d9/exceptions": "9.26.3",
148
+ "@wbce-d9/app": "9.29.0",
150
149
  "@wbce-d9/schema": "9.26.3",
151
- "@wbce-d9/storage-driver-azure": "9.26.5",
152
- "@wbce-d9/specs": "9.26.3",
150
+ "@wbce-d9/extensions-sdk": "9.26.5",
153
151
  "@wbce-d9/storage-driver-cloudinary": "9.26.5",
154
- "@wbce-d9/storage-driver-gcs": "9.26.5",
155
- "@wbce-d9/storage-driver-local": "9.26.5",
152
+ "@wbce-d9/specs": "9.26.3",
153
+ "@wbce-d9/storage-driver-azure": "9.26.5",
156
154
  "@wbce-d9/storage": "9.26.3",
155
+ "@wbce-d9/storage-driver-gcs": "9.26.5",
157
156
  "@wbce-d9/storage-driver-s3": "9.26.7",
157
+ "@wbce-d9/storage-driver-local": "9.26.5",
158
158
  "@wbce-d9/update-check": "9.26.3",
159
159
  "@wbce-d9/utils": "9.28.0"
160
160
  },