createMiniSessionMessage()
createMiniSessionMessage(
timestamp):string
Defined in: packages/quasar-sdk/src/utils/auth.ts:43
Standardizes the message format for Mini-Session authentication. Both frontend and backend MUST use this exact template for verification to pass.
Parameters
timestamp
string
ISO string timestamp (e.g., new Date().toISOString()).
Returns
string
The formatted message string to be signed.
Example
const msg = createMiniSessionMessage(new Date().toISOString());
// msg -> "Mini-Session Login: 2026-05-13T10:00:00.000Z"Last updated on