ssx-server/v1.1.0
skgbafa
released this
08 Dec 16:08
·
86 commits
to main
since this release
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) andSSXServerConfig
; - Exports
SSXProviders
(deprecated) andSSXServerProviders
; - Removes all utils functions. They were moved to
ssx-core
; - Optimizes
try/catch
blocks.
- Adds
-
c66f308: Include and export
SiweMessage
from thesiwe
dependency. -
Updated dependencies [c989838]
-
Updated dependencies [83c314c]
- @spruceid/[email protected]
- @spruceid/[email protected]