File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
pages/recovery/guardian/(actions) Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,20 @@ export function useIsSsoAccount() {
2020 functionName : "supportsInterface" ,
2121 args : [ runtimeConfig . public . ssoAccountInterfaceId as Address ] ,
2222 } ) ;
23- ;
24- } catch {
23+ } catch ( err : unknown ) {
24+ // Handle NoFallbackHandler error (0x48c9ceda) - ModularSmartAccount doesn't implement supportsInterface yet
25+ // WORKAROUND: In our dev environment, all accounts deployed via auth-server-api are ERC-4337 ModularSmartAccounts
26+ // that throw this error. We treat these as SSO accounts.
27+ // Check both the error message and the full error string representation
28+ const errorString = err . toString ?.( ) || String ( err ) ;
29+ const errorMessage = ( err as Error ) . message || "" ;
30+
31+ if ( errorMessage . includes ( "0x48c9ceda" ) || errorMessage . includes ( "NoFallbackHandler" )
32+ || errorString . includes ( "0x48c9ceda" ) || errorString . includes ( "NoFallbackHandler" ) ) {
33+ return true ;
34+ }
35+
36+ // For other errors, assume not an SSO account
2537 return false ;
2638 }
2739 } ) ;
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ const recoveryParams = computedAsync(async () => RecoveryParamsSchema.parseAsync
173173
174174const recoveryCompleted = computedAsync (async () => {
175175 // Force re-evaluation when trigger changes
176+ const _triggerValue = recoveryCheckTrigger .value ;
177+
176178 if (! recoveryParams .value ?.accountAddress || ! recoveryParams .value ?.credentialId || ! recoveryParams .value ?.credentialPublicKey ) {
177179 return false ;
178180 }
You can’t perform that action at this time.
0 commit comments