Home > @spruceid/ssx-serverless > SSXServer > getNonce

SSXServer.getNonce property

Generates a nonce and stores it in the current session if a sessionKey is provided or creates a new one if not.


getNonce: (getNonceOpts?: {
        sessionKey?: any;
        generateUpdateValue?: (nonce: string) => any;
        generateCreateValue?: (nonce: string) => any;
        createOpts?: Record<string, any>;
        updateOpts?: Record<string, any>;
    }) => Promise<{
        nonce: string;
        dbResult: any;

Last updated