@faable/auth-sdk 2.5.44 → 2.5.46

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.
@@ -1220,6 +1220,26 @@ export interface paths {
1220
1220
  patch?: never;
1221
1221
  trace?: never;
1222
1222
  };
1223
+ "/passwordless/verify_code": {
1224
+ parameters: {
1225
+ query?: never;
1226
+ header?: never;
1227
+ path?: never;
1228
+ cookie?: never;
1229
+ };
1230
+ get?: never;
1231
+ put?: never;
1232
+ /**
1233
+ * Verify a passwordless code and establish a session
1234
+ * @description Verifies an emailed passwordless code and establishes the browser `faable_sess` session, returning where to send the user next. Called by the first-party hosted login UI; SPAs on other origins use the `passwordless/otp` grant at `/oauth/token` instead, which returns tokens and no cookie.
1235
+ */
1236
+ post: operations["passwordless/verifyCode"];
1237
+ delete?: never;
1238
+ options?: never;
1239
+ head?: never;
1240
+ patch?: never;
1241
+ trace?: never;
1242
+ };
1223
1243
  "/passwordless/start": {
1224
1244
  parameters: {
1225
1245
  query?: never;
@@ -8844,6 +8864,38 @@ export interface operations {
8844
8864
  };
8845
8865
  };
8846
8866
  };
8867
+ "passwordless/verifyCode": {
8868
+ parameters: {
8869
+ query?: never;
8870
+ header?: never;
8871
+ path?: never;
8872
+ cookie?: never;
8873
+ };
8874
+ requestBody: {
8875
+ content: {
8876
+ "application/json": {
8877
+ client_id: string;
8878
+ email: string;
8879
+ otp: string;
8880
+ /** @description Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored. */
8881
+ redirect_to?: string;
8882
+ };
8883
+ };
8884
+ };
8885
+ responses: {
8886
+ /** @description Default Response */
8887
+ 200: {
8888
+ headers: {
8889
+ [name: string]: unknown;
8890
+ };
8891
+ content: {
8892
+ "application/json": {
8893
+ redirect_url: string;
8894
+ };
8895
+ };
8896
+ };
8897
+ };
8898
+ };
8847
8899
  "passwordless/start": {
8848
8900
  parameters: {
8849
8901
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.5.44",
3
+ "version": "2.5.46",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "1.47.3",
6
+ "version": "1.47.6",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -18204,6 +18204,66 @@
18204
18204
  }
18205
18205
  }
18206
18206
  },
18207
+ "/passwordless/verify_code": {
18208
+ "post": {
18209
+ "operationId": "passwordless/verifyCode",
18210
+ "summary": "Verify a passwordless code and establish a session",
18211
+ "tags": [
18212
+ "passwordless"
18213
+ ],
18214
+ "description": "Verifies an emailed passwordless code and establishes the browser `faable_sess` session, returning where to send the user next. Called by the first-party hosted login UI; SPAs on other origins use the `passwordless/otp` grant at `/oauth/token` instead, which returns tokens and no cookie.",
18215
+ "requestBody": {
18216
+ "required": true,
18217
+ "content": {
18218
+ "application/json": {
18219
+ "schema": {
18220
+ "type": "object",
18221
+ "required": [
18222
+ "client_id",
18223
+ "email",
18224
+ "otp"
18225
+ ],
18226
+ "properties": {
18227
+ "client_id": {
18228
+ "type": "string"
18229
+ },
18230
+ "email": {
18231
+ "type": "string"
18232
+ },
18233
+ "otp": {
18234
+ "type": "string"
18235
+ },
18236
+ "redirect_to": {
18237
+ "type": "string",
18238
+ "description": "Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored."
18239
+ }
18240
+ }
18241
+ }
18242
+ }
18243
+ }
18244
+ },
18245
+ "responses": {
18246
+ "200": {
18247
+ "description": "Default Response",
18248
+ "content": {
18249
+ "application/json": {
18250
+ "schema": {
18251
+ "type": "object",
18252
+ "required": [
18253
+ "redirect_url"
18254
+ ],
18255
+ "properties": {
18256
+ "redirect_url": {
18257
+ "type": "string"
18258
+ }
18259
+ }
18260
+ }
18261
+ }
18262
+ }
18263
+ }
18264
+ }
18265
+ }
18266
+ },
18207
18267
  "/passwordless/start": {
18208
18268
  "post": {
18209
18269
  "operationId": "passwordless/start",