jazz-browser-auth-clerk 0.7.33-unique.1 → 0.7.35-guest-auth.4
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/src/index.ts +15 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
> jazz-browser-auth-clerk@0.7.33-
|
2
|
+
> jazz-browser-auth-clerk@0.7.33-guest-auth.2 build /Users/anselm/jazz/jazz/packages/jazz-browser-auth-clerk
|
3
3
|
> npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
|
4
4
|
|
5
5
|
|
6
|
-
> jazz-browser-auth-clerk@0.7.33-
|
6
|
+
> jazz-browser-auth-clerk@0.7.33-guest-auth.2 lint
|
7
7
|
> eslint . --ext ts,tsx
|
8
8
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# jazz-browser-media-images
|
2
2
|
|
3
|
+
## 0.7.35-guest-auth.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
- jazz-browser@0.7.35-guest-auth.4
|
9
|
+
- jazz-tools@0.7.35-guest-auth.4
|
10
|
+
|
11
|
+
## 0.7.33-guest-auth.2
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- Updated dependencies
|
16
|
+
- jazz-browser@0.7.35-guest-auth.3
|
17
|
+
- jazz-tools@0.7.35-guest-auth.3
|
18
|
+
|
3
19
|
## 0.7.33-unique.1
|
4
20
|
|
5
21
|
### Patch Changes
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,gBAAgB;IACzB,YACW,MA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,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;oBACnB,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;iBACJ,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;CACJ"}
|
package/package.json
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "jazz-browser-auth-clerk",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.35-guest-auth.4",
|
4
4
|
"type": "module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "src/index.ts",
|
7
7
|
"license": "MIT",
|
8
8
|
"dependencies": {},
|
9
9
|
"peerDependencies": {
|
10
|
-
"@clerk/types": "^3.65.3",
|
11
10
|
"cojson": "0.7.35-unique.2",
|
12
|
-
"jazz-tools": "0.7.35-
|
13
|
-
"jazz-browser": "0.7.35-
|
11
|
+
"jazz-tools": "0.7.35-guest-auth.4",
|
12
|
+
"jazz-browser": "0.7.35-guest-auth.4"
|
14
13
|
},
|
15
14
|
"devDependencies": {
|
16
15
|
"typescript": "^5.1.6"
|
package/src/index.ts
CHANGED
@@ -1,11 +1,24 @@
|
|
1
1
|
import { Account, AuthMethod, AuthResult, ID } from "jazz-tools";
|
2
|
-
import type { LoadedClerk } from '@clerk/types';
|
3
2
|
import { AgentSecret } from "cojson";
|
4
3
|
|
4
|
+
export type MinimalClerkClient = {
|
5
|
+
user: {
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
7
|
+
unsafeMetadata: Record<string, any>;
|
8
|
+
fullName: string | null;
|
9
|
+
username: string | null;
|
10
|
+
id: string;
|
11
|
+
update: (args: {
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
13
|
+
unsafeMetadata: Record<string, any>;
|
14
|
+
}) => Promise<unknown>;
|
15
|
+
} | null | undefined;
|
16
|
+
}
|
17
|
+
|
5
18
|
export class BrowserClerkAuth implements AuthMethod {
|
6
19
|
constructor(
|
7
20
|
public driver: BrowserClerkAuth.Driver,
|
8
|
-
private readonly clerkClient:
|
21
|
+
private readonly clerkClient: MinimalClerkClient
|
9
22
|
) {}
|
10
23
|
|
11
24
|
async start(): Promise<AuthResult> {
|