Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 5241616

Browse files
committed
chore: Fix missing methods
1 parent faa89a7 commit 5241616

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"devDependencies": {
1010
"@antfu/eslint-config": "^2.21.2",
11-
"typescript": "^5.5.2",
12-
"eslint": "^9.6.0"
11+
"eslint": "^9.6.0",
12+
"typescript": "^5.5.2"
1313
}
1414
}

packages/vue-clerk/src/isomorphicClerk.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
import type {
1010
ActiveSessionResource,
11+
AuthenticateWithCoinbaseParams,
1112
AuthenticateWithGoogleOneTapParams,
1213
AuthenticateWithMetamaskParams,
1314
Clerk,
15+
ClerkAuthenticateWithWeb3Params,
1416
ClientResource,
1517
CreateOrganizationParams,
1618
CreateOrganizationProps,
@@ -100,6 +102,8 @@ type IsomorphicLoadedClerk = Without<
100102
| 'handleGoogleOneTapCallback'
101103
| 'handleUnauthenticated'
102104
| 'authenticateWithMetamask'
105+
| 'authenticateWithCoinbase'
106+
| 'authenticateWithWeb3'
103107
| 'authenticateWithGoogleOneTap'
104108
| 'createOrganization'
105109
| 'getOrganization'
@@ -119,6 +123,8 @@ type IsomorphicLoadedClerk = Without<
119123
handleUnauthenticated: () => void
120124
// TODO: Align Promise unknown
121125
authenticateWithMetamask: (params: AuthenticateWithMetamaskParams) => Promise<void>
126+
authenticateWithCoinbase: (params: AuthenticateWithCoinbaseParams) => Promise<void>
127+
authenticateWithWeb3: (params: ClerkAuthenticateWithWeb3Params) => Promise<void>
122128
authenticateWithGoogleOneTap: (
123129
params: AuthenticateWithGoogleOneTapParams,
124130
) => Promise<SignInResource | SignUpResource>
@@ -1076,6 +1082,26 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
10761082
}
10771083
}
10781084

1085+
authenticateWithCoinbase = async (params: AuthenticateWithCoinbaseParams): Promise<void> => {
1086+
const callback = () => this.clerkjs?.authenticateWithCoinbase(params)
1087+
if (this.clerkjs && this.#loaded) {
1088+
return callback() as Promise<void>
1089+
}
1090+
else {
1091+
this.premountMethodCalls.set('authenticateWithCoinbase', callback)
1092+
}
1093+
}
1094+
1095+
authenticateWithWeb3 = async (params: ClerkAuthenticateWithWeb3Params): Promise<void> => {
1096+
const callback = () => this.clerkjs?.authenticateWithWeb3(params)
1097+
if (this.clerkjs && this.#loaded) {
1098+
return callback() as Promise<void>
1099+
}
1100+
else {
1101+
this.premountMethodCalls.set('authenticateWithWeb3', callback)
1102+
}
1103+
}
1104+
10791105
authenticateWithGoogleOneTap = async (
10801106
params: AuthenticateWithGoogleOneTapParams,
10811107
): Promise<SignInResource | SignUpResource> => {

0 commit comments

Comments
 (0)