@meistrari/auth-core 1.3.0 → 1.4.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { createRemoteJWKSet, jwtVerify, decodeJwt } from 'jose';
1
+ import { decodeJwt, createRemoteJWKSet, jwtVerify } from 'jose';
2
2
  import { ssoClient } from '@better-auth/sso/client';
3
3
  import { createAuthClient } from 'better-auth/client';
4
4
  import { organizationClient, twoFactorClient, jwtClient, apiKeyClient, adminClient, inferAdditionalFields } from 'better-auth/client/plugins';
@@ -6,8 +6,6 @@ import { createAccessControl } from 'better-auth/plugins/access';
6
6
  import { defaultStatements } from 'better-auth/plugins/organization/access';
7
7
  export { BetterFetchError as APIError } from '@better-fetch/fetch';
8
8
 
9
- const version = "1.3.0";
10
-
11
9
  const statements = {
12
10
  ...defaultStatements,
13
11
  access: ["admin", "member", "reviewer"]
@@ -48,18 +46,19 @@ const organizationAdditionalFields = {
48
46
  }
49
47
  };
50
48
 
51
- const customEndpointsPluginClient = () => {
49
+ const version = "1.4.1";
50
+ function customEndpointsPluginClient() {
52
51
  return {
53
52
  id: "custom-endpoints",
54
53
  $InferServerPlugin: {}
55
54
  };
56
- };
57
- const handshakePluginClient = () => {
55
+ }
56
+ function handshakePluginClient() {
58
57
  return {
59
58
  id: "handshake",
60
59
  $InferServerPlugin: {}
61
60
  };
62
- };
61
+ }
63
62
  function createAPIClient(apiUrl, fetchOptions = {}) {
64
63
  const serviceName = typeof process !== "undefined" ? process.env.SERVICE_NAME : "";
65
64
  const userAgent = `auth-sdk:core:${version}${serviceName ? `@${serviceName}` : ""}`;
@@ -255,13 +254,13 @@ class OrganizationService {
255
254
  });
256
255
  }
257
256
  /**
258
- * Removes a user from the active organization.
259
- *
260
- * @param options - User identifier (either memberId or userEmail must be provided)
261
- * @param options.memberId - The member ID to remove
262
- * @param options.userEmail - The user email to remove
263
-
264
- */
257
+ * Removes a user from the active organization.
258
+ *
259
+ * @param options - User identifier (either memberId or userEmail must be provided)
260
+ * @param options.memberId - The member ID to remove
261
+ * @param options.userEmail - The user email to remove
262
+
263
+ */
265
264
  async removeUserFromOrganization({ memberId, userEmail }) {
266
265
  await this.client.organization.removeMember({
267
266
  memberIdOrEmail: memberId ?? userEmail
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
- "name": "@meistrari/auth-core",
3
- "version": "1.3.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.mjs"
9
- }
10
- },
11
- "main": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts",
13
- "files": [
14
- "dist"
15
- ],
16
- "scripts": {
17
- "build": "unbuild"
18
- },
19
- "dependencies": {
20
- "@better-auth/sso": "1.4.1",
21
- "better-auth": "1.4.1",
22
- "jose": "6.1.0",
23
- "nanostores": "1.0.1",
24
- "@better-fetch/fetch": "1.1.18",
25
- "better-call": "1.1.0"
26
- },
27
- "devDependencies": {
28
- "@types/node": "latest",
29
- "typescript": "5.9.2",
30
- "unbuild": "3.6.1"
2
+ "name": "@meistrari/auth-core",
3
+ "version": "1.4.1",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.mjs"
31
9
  }
32
- }
10
+ },
11
+ "main": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "unbuild"
18
+ },
19
+ "dependencies": {
20
+ "@better-auth/sso": "1.4.7",
21
+ "better-auth": "1.4.7",
22
+ "jose": "6.1.0",
23
+ "nanostores": "1.0.1",
24
+ "@better-fetch/fetch": "1.1.21",
25
+ "better-call": "1.1.5"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "latest",
29
+ "typescript": "5.9.2",
30
+ "unbuild": "3.6.1"
31
+ }
32
+ }