SubnameChallengeSiweConfig
@justaname.id/sdk • Docs
@justaname.id/sdk / SubnameChallengeSiweConfig
Interface: SubnameChallengeSiweConfig
Represents the Sign-In with Ethereum (SIWE) functionality, providing methods to initiate and verify challenges.
Example
import { JustaName } from '@justaname.id/sdk';
const configuration = {
apiKey: 'your-api-key'
};
const justaName = JustaName.init(configuration);
const requestChallengeResponse = await justaName.siwe.requestChallenge({
chainId: 1,
origin: 'http://localhost:3333',
address: '0x59c44836630760F97b74b569B379ca94c37B93ca',
domain: 'localhost',
ttl?: 120000,
});
Extends
Omit
<SiweConfig
,"chainId"
|"ttl"
>
Properties
domain
domain:
string
Represents the ENS domain
Inherited from
Omit.domain
Defined in
packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts:8
origin
origin:
string
Represents the origin of the request (e.g. the domain of the website).
Inherited from
Omit.origin
Defined in
packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts:13
Last updated
Was this helpful?