Packages

@onmax/better-auth-nimiq-pay

Direct Nimiq Pay Better Auth plugin and client helpers.

@onmax/better-auth-nimiq-pay

This package handles the direct mini-app flow.

Exports

  • @onmax/better-auth-nimiq-pay
  • @onmax/better-auth-nimiq-pay/client
  • @onmax/better-auth-nimiq-pay/provider
  • @onmax/better-auth-nimiq-pay/wallet

Main server API

  • nimiqPay(options)
  • createNimiqPayService(options)
  • buildSignInMessage({ appName, origin, nonce })
  • createDefaultNimiqSignatureVerifier()
  • createNimiqCoreSignatureVerifier()

Main client API

  • nimiqPayClient(options)
  • signInWithNimiqMiniApp(fetcher, options)
  • createNimiqPayClientHelpers(fetcher, defaults)

Provider API

Use the provider types when you need to type or inject the mini-app surface:

provider.ts
import type { NimiqMiniAppProvider } from '@onmax/better-auth-nimiq-pay/provider'

Wallet helpers

The wallet export derives deterministic credentials from a signed message. This stays separate from Better Auth session creation.

Copyright © 2026