- Dependencies updates, including major bump for webpack-cli/generators, in order to address vulnerabilities including all critical ones.
- Updated dependencies
- @spruceid/[email protected]
- Added stricter checks on nonces
- SSX middleware was moved back to the server package
- Updated dependencies
- @spruceid/[email protected]
- ce89464: Adds stricter checks on nonces
- Updated dependencies [94cee9c]
- Updated dependencies [c1f0720]
- Updated dependencies [7f0343b]
- Updated dependencies [ef51b85]
- Updated dependencies [94cee9c]
- Updated dependencies [0274cdf]
- @spruceid/[email protected]
- @spruceid/[email protected]
- @spruceid/[email protected]
- Updated dependencies [60dedab]
- Updated dependencies
- Updated dependencies [63f70cf]
- @spruceid/[email protected]
- @spruceid/[email protected]
- Patch fix for build issue
- Updated dependencies
- @spruceid/[email protected]
- @spruceid/[email protected]
- @spruceid/[email protected]
-
24a7220: Adds Lens resolution feature to the server. This feature is available to Polygon Mainnet and Mumbai Testnet (visit https://docs.lens.xyz/docs/api-links for more information).
- Adds
ssx.resolveLens(...)
method to resolve Lens profiles; - Updates
ssx.login()
to acceptresolveLens?: boolean
as parameter and returns Lens profiles iftrue
. This property isn't mandatory and the value isfalse
; - Express and HTTP middlewares
/ssx-login
returns Lens profiles if requested;
- Adds
- 836ed67: Improved promise resolution to the verification of the Siwe Message, preventing potential exceptions coming from the middleware.
- 6205fc4: Extracted middleware logic to new ssx-server-middleware package. Moved
SSXServer
class interface tossx-core
and passed around implementation - Updated dependencies [6205fc4]
- Updated dependencies [6205fc4]
- Updated dependencies [24a7220]
- @spruceid/[email protected]
- @spruceid/[email protected]
- @spruceid/[email protected]
- b25cbde: Updated
SSXServerRoutes
type toSSXServerRouteNames
to reflect usage in ssx-server - Updated dependencies [b25cbde]
- @spruceid/[email protected]
- @spruceid/[email protected]
-
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.
-
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]
- f317c82: Public release of the SSX SDK
- 1072382: Add ENS resolution feature to the client and server to allow the developer to choose where to resolve it.
- Adds
ssx.resolveEns(...)
method to resolve ENS data; - Express and HTTP middlewares
/ssx-login
responses were updated. These requests were returning a session object with a session property. Now it returns a session object without the session property, but keeping all information; - Updates
ssx-test-express-api
andssx-test-http-api
to show how to use this feature.
- Updated dependencies [f317c82]
- @spruceid/[email protected]