function signAuthMessage(privateKey: string, input?: Omit<BuildAuthMessageInput, "ownerAddress"> & object): Promise<{
message: string;
signature: string;
ownerAddress: string;
expireAt: Date;
}>;
Defined in: sdk-js/src/v4/auth.ts:75
One-shot helper: build the message, sign it with the supplied
private key, and return the payload ready for
client.auth.exchange(). Only useful in tests / Node tooling
where the private key is in hand; browser flows use
buildAuthMessage + a wallet's personal_sign.
| Parameter | Type |
|---|---|
privateKey | string |
input? | Omit<BuildAuthMessageInput, "ownerAddress"> & object |
Promise<{
message: string;
signature: string;
ownerAddress: string;
expireAt: Date;
}>