UNPKG

@reown/appkit-siwx

Version:

The chain agnostic tool to enable authentication for AppKit applications.

16 lines 498 B
/** * This is the base class for a SIWX verifier. */ export class SIWXVerifier { /** * This method should return true if the verifier should verify the session. * By default it will check by the chain namespace, but you may override it for a specific requirement. * * @param session SIWXSession * @returns boolean */ shouldVerify(session) { return session.data.chainId.startsWith(this.chainNamespace); } } //# sourceMappingURL=SIWXVerifier.js.map