You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create a custom SIWXVerifier by importing the SIWXVerifier abstract class, TypeScript throws an error indicating that @reown/appkit-siwx does not export SIWXVerifier. This is not unique to SIWXVerifier , none of the abstract classes are exported.
This is how SIWXVerifier and the other abstract classes are imported:
Which is the same as the example in the documentation.
import{SIWXVerifier}from'@reown/appkit-siwx'importtype{SIWXSession}from'@reown/appkit-core'exportclassMyVerifierextendsSIWXVerifier{publicreadonlychainNamespace='eip155'// set the chain namespace for your verifierpublicasyncverify(session: SIWXSession): Promise<boolean>{// Implement your verification logic herereturntrue}}
Link to minimal reproducible example
https://github.com/yigityazicilar/appkit-siwx-abstract-class-imports
Summary
When I try to create a custom
SIWXVerifier
by importing theSIWXVerifier
abstract class, TypeScript throws an error indicating that@reown/appkit-siwx
does not exportSIWXVerifier
. This is not unique toSIWXVerifier
, none of the abstract classes are exported.This is how SIWXVerifier and the other abstract classes are imported:
Which is the same as the example in the documentation.
List of related npm package versions
@reown/[email protected]
@reown/[email protected]
@reown/[email protected]
@tanstack/[email protected]
[email protected]
[email protected]
Node.js Version
v22.13.0
Package Manager
[email protected]
The text was updated successfully, but these errors were encountered: