Interface: SocialProvider
Defined in: packages/signers/src/social/provider.ts:8 Structural transport for a social-login provider. KeepssocialSigner provider-agnostic
and fully unit-testable (inject a double) while the default impl wraps web3auth. The
ed25519 PRIVATE key never crosses this boundary - only the public key + signatures do.
Methods
connect()
connect(Defined in: packages/signers/src/social/provider.ts:14 Run the provider OAuth flow (public part client-side; the secret verifier callback is completed server-side via the signer-proxy). Resolves the connected Stellar ed25519 public key (aparams?):Promise<{expiresAt?:number;publicKey:string; }>
G... StrKey) and an optional provider-session expiry (epoch ms).
Parameters
params?
Record<string, unknown>
Returns
Promise<{ expiresAt?: number; publicKey: string; }>
signDigest()
signDigest(Defined in: packages/signers/src/social/provider.ts:19 ed25519-sign a 32-byte digest with the connected key (inside the provider’s secure context). Returns the raw 64-byte signature. Used bydigest):Promise<Uint8Array<ArrayBufferLike>>
signAuthEntry.
Parameters
digest
Uint8Array
Returns
Promise<Uint8Array<ArrayBufferLike>>
signTransaction()?
Defined in: packages/signers/src/social/provider.ts:24 Optional: sign a full transaction envelope (classic sponsored onboarding signs the sponsor-sandwich tx, not an auth entry). Returns the signed envelope as base64 XDR.optionalsignTransaction(txXdr,ctx):Promise<string>
Parameters
txXdr
string
ctx
address
string
network
Network
Returns
Promise<string>
