Home > @spruceid/ssx-server > SSXServer > login

SSXServer.login 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.


login: (siwe: Partial<SiweMessage> | string, signature: string, daoLogin: boolean, resolveEns: boolean | SSXEnsResolveOptions, nonce: string) => Promise<{
        success: boolean;
        error: SiweError;
        session: Partial<SessionData>;

Last updated