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

SSXServer.signIn property

Verifies the SIWE message, signature, and nonce for a sign-in request. If the message is verified, a session token is generated and returned.


signIn: (siwe: Partial<SiweMessage> | string, signature: string, sessionKey: any, signInOpts: {
        daoLogin?: boolean;
        resolveEnsDomain?: boolean;
        resolveEnsAvatar?: boolean;
        retrieveOpts?: Record<string, any>;
        generateUpdateValue?: (sessionData: SSXSessionData) => any;
        updateOpts?: Record<string, any>;
    }) => Promise<SSXSessionData>;

Last updated