88
99import 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