When to use
ChoosesocialSigner when you want a familiar sign-in button (Google, Apple, Discord) without
requiring your users to install a wallet or remember a seed phrase. The resulting key backs a
classic G... account.
Factory
socialSigner(opts) accepts a SocialSignerOptions object:
Authentication
Callsigner.authenticate?.(params) before the payment. It runs the provider’s OAuth flow and
resolves an AuthDetails object:
authenticate() returns, the signer’s getPublicKey() and signAuthEntry() are ready.
Provider or network failures surface as BuckspayError with code AUTH_PROVIDER_ERROR.
Server-side proxy
Mount the signer-proxy in your backend (for example, a Next.js App Router route):POST /auth/social endpoint
with the secret - only public key material is returned to the browser.
Example
Next
Email OTP
No OAuth required - authenticate with a code sent to the user’s inbox.
Facilitator and BFF
How the signer-proxy and API key work together server-side.

