@meistrari/auth-core 1.41.0 → 1.41.1

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/index.d.mts CHANGED
@@ -926,7 +926,7 @@ declare class ApplicationService {
926
926
  * access rules must allow the current user.
927
927
  *
928
928
  * @param organizationId - The ID of the organization to switch to
929
- * @param accessToken - Optional access token for authentication (uses cookie if not provided)
929
+ * @param accessToken - Access token for authentication, sent as the `x-tela-access-token` header
930
930
  * @returns New authentication tokens and user/organization details
931
931
  */
932
932
  switchOrganization(organizationId: string, accessToken: string): Promise<CompleteAuthorizationFlowResponse>;
package/dist/index.d.ts CHANGED
@@ -926,7 +926,7 @@ declare class ApplicationService {
926
926
  * access rules must allow the current user.
927
927
  *
928
928
  * @param organizationId - The ID of the organization to switch to
929
- * @param accessToken - Optional access token for authentication (uses cookie if not provided)
929
+ * @param accessToken - Access token for authentication, sent as the `x-tela-access-token` header
930
930
  * @returns New authentication tokens and user/organization details
931
931
  */
932
932
  switchOrganization(organizationId: string, accessToken: string): Promise<CompleteAuthorizationFlowResponse>;
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
21
21
  return nowInSeconds > expirationTime;
22
22
  }
23
23
 
24
- const version = "1.41.0";
24
+ const version = "1.41.1";
25
25
 
26
26
  function parsedEnumValues(schema) {
27
27
  return Object.fromEntries(
@@ -1611,7 +1611,7 @@ class ApplicationService {
1611
1611
  * access rules must allow the current user.
1612
1612
  *
1613
1613
  * @param organizationId - The ID of the organization to switch to
1614
- * @param accessToken - Optional access token for authentication (uses cookie if not provided)
1614
+ * @param accessToken - Access token for authentication, sent as the `x-tela-access-token` header
1615
1615
  * @returns New authentication tokens and user/organization details
1616
1616
  */
1617
1617
  async switchOrganization(organizationId, accessToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-core",
3
- "version": "1.41.0",
3
+ "version": "1.41.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {