Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Cannot import abstract SIWX classes #3730

Open
yigityazicilar opened this issue Jan 23, 2025 · 1 comment · May be fixed by #3738
Open

[bug] Cannot import abstract SIWX classes #3730

yigityazicilar opened this issue Jan 23, 2025 · 1 comment · May be fixed by #3738
Labels
bug Something isn't working needs review

Comments

@yigityazicilar
Copy link

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 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:

import { SIWXVerifier, SIWXStorage, SIWXMessenger } from "@reown/appkit-siwx";

Which is the same as the example in the documentation.

import { SIWXVerifier } from '@reown/appkit-siwx'
import type { SIWXSession } from '@reown/appkit-core'

export class MyVerifier extends SIWXVerifier {
  public readonly chainNamespace = 'eip155' // set the chain namespace for your verifier

  public async verify(session: SIWXSession): Promise<boolean> {
    // Implement your verification logic here
    return true
  }
}

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]

@yigityazicilar yigityazicilar added bug Something isn't working needs review labels Jan 23, 2025
Copy link

linear bot commented Jan 23, 2025

@Nithishvb Nithishvb linked a pull request Jan 24, 2025 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant