@faable/auth-sdk 2.5.66 → 2.5.68
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.
- package/dist/api/types.d.ts +4 -2
- package/package.json +1 -1
- package/spec/openapi.json +5 -4
package/dist/api/types.d.ts
CHANGED
|
@@ -1269,7 +1269,7 @@ export interface paths {
|
|
|
1269
1269
|
};
|
|
1270
1270
|
/**
|
|
1271
1271
|
* Get current User
|
|
1272
|
-
* @description Returns the User behind the current session or bearer token. Requires a valid session cookie or `Authorization: Bearer <access_token>` header.
|
|
1272
|
+
* @description Returns the User behind the current session or bearer token. Requires a valid session cookie or `Authorization: Bearer <access_token>` header. With a Bearer, the custom claims of that access token (connection claims_mapping, actions setCustomClaim) are included as top-level properties.
|
|
1273
1273
|
*/
|
|
1274
1274
|
get: operations["session/me"];
|
|
1275
1275
|
put?: never;
|
|
@@ -8954,7 +8954,7 @@ export interface operations {
|
|
|
8954
8954
|
};
|
|
8955
8955
|
requestBody?: never;
|
|
8956
8956
|
responses: {
|
|
8957
|
-
/** @description User */
|
|
8957
|
+
/** @description The current User. With a Bearer access token the response also carries the token's custom claims (e.g. `ciapol.com/station_id`) as top-level properties; profile fields always win over a same-named claim. */
|
|
8958
8958
|
200: {
|
|
8959
8959
|
headers: {
|
|
8960
8960
|
[name: string]: unknown;
|
|
@@ -9072,6 +9072,8 @@ export interface operations {
|
|
|
9072
9072
|
createdAt: string;
|
|
9073
9073
|
/** @description User updated date */
|
|
9074
9074
|
updatedAt?: string;
|
|
9075
|
+
} & {
|
|
9076
|
+
[key: string]: unknown;
|
|
9075
9077
|
};
|
|
9076
9078
|
};
|
|
9077
9079
|
};
|
package/package.json
CHANGED
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": "2.0
|
|
6
|
+
"version": "2.1.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -18395,10 +18395,10 @@
|
|
|
18395
18395
|
"tags": [
|
|
18396
18396
|
"session"
|
|
18397
18397
|
],
|
|
18398
|
-
"description": "Returns the User behind the current session or bearer token. Requires a valid session cookie or `Authorization: Bearer <access_token>` header.",
|
|
18398
|
+
"description": "Returns the User behind the current session or bearer token. Requires a valid session cookie or `Authorization: Bearer <access_token>` header. With a Bearer, the custom claims of that access token (connection claims_mapping, actions setCustomClaim) are included as top-level properties.",
|
|
18399
18399
|
"responses": {
|
|
18400
18400
|
"200": {
|
|
18401
|
-
"description": "User",
|
|
18401
|
+
"description": "The current User. With a Bearer access token the response also carries the token's custom claims (e.g. `ciapol.com/station_id`) as top-level properties; profile fields always win over a same-named claim.",
|
|
18402
18402
|
"content": {
|
|
18403
18403
|
"application/json": {
|
|
18404
18404
|
"schema": {
|
|
@@ -18723,7 +18723,8 @@
|
|
|
18723
18723
|
"description": "User updated date"
|
|
18724
18724
|
}
|
|
18725
18725
|
},
|
|
18726
|
-
"
|
|
18726
|
+
"additionalProperties": true,
|
|
18727
|
+
"description": "The current User. With a Bearer access token the response also carries the token's custom claims (e.g. `ciapol.com/station_id`) as top-level properties; profile fields always win over a same-named claim."
|
|
18727
18728
|
}
|
|
18728
18729
|
}
|
|
18729
18730
|
}
|