Configuring SSX for Serverless
SSX Serverless provides an optimized implementation for serverless
Installation
In order to enable ssx in your serverless app, install ssx-serverless
with your preferred package manager by running any of the following commands:
@spruceid/ssx-server
is not a dependency of @spruceid/ssx-serverless
Usage
ssx-serverless
exports the main class SSXServer
which is supposed to be used as a Singleton. On your serverless setup, you'll need to create an instance of SSXServer as seen below.
SSXServer requires two objects to be instantiated.
The first object is the main object to configure the providers and enable daoLogin.
The second object is the object with the session management functions.
Looking for an example to start? Check out the AWS + Node.js + Typescript + DynamoDB example
Last updated