Skip to content

SIWE

@cinacoin/siwe — Sign-In with Ethereum integration for Cinacoin.

Installation

bash
npm install @cinacoin/siwe @cinacoin/core-sdk

Usage

typescript
import { SIWE } from '@cinacoin/siwe'

const siwe = new SIWE({
  domain: 'cinacoin.com',
  uri: 'https://cinacoin.com',
  statement: 'Sign in to Cinacoin',
})

Methods

  • createMessage() — Generate the SIWE message
  • verify(message, signature) — Verify a signed SIWE message
  • getSession() — Get current session
  • signOut() — End the session

Released under the MIT License.