Skip to content

ssx-server/v1.1.0

Compare
Choose a tag to compare
@skgbafa skgbafa released this 08 Dec 16:08
· 86 commits to main since this release
6f2be75

Minor Changes

  • 83c314c: Enable custom paths for endpoints on client and server.
    This now accepts the routes configuration when instantiating the middlewares as follows:

    const expressMiddleware = SSXExpressMiddleware(ssx, {
        nonce: '/ssx-custom-nonce',
        login: '/ssx-custom-login',
        logout: '/ssx-custom-logout',
      });
    
    // or
    
    const httpMiddleware = SSXHttpMiddleware(ssx, {
        nonce: '/ssx-custom-nonce',
        login: '/ssx-custom-login',
        logout: '/ssx-custom-logout',
      });
    

    The second parameter with the configuration object is optional and the default values are: nonce: '/ssx-nonce', login: '/ssx-login', logout: '/ssx-logout'. It isn't necessary to override all of them, you can only override one of them.

Patch Changes

  • c989838: Refactor code to avoid duplication and improve performance.

    • Adds @spruceid/ssx-core as a dependency;
    • Removes all types and interfaces declarations. They were moved to ssx-core;
    • Exports SSXConfig (deprecated) and SSXServerConfig;
    • Exports SSXProviders (deprecated) and SSXServerProviders;
    • Removes all utils functions. They were moved to ssx-core;
    • Optimizes try/catch blocks.
  • c66f308: Include and export SiweMessage from the siwe dependency.

  • Updated dependencies [c989838]

  • Updated dependencies [83c314c]