Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @toorieaa/auth-app-session-options with all npm packages installed. Try it out:

require("@toorieaa/sessionoptions/package.json"); // @toorieaa/sessionoptions is a peer dependency. var authAppSessionOptions = require("@toorieaa/auth-app-session-options")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@toorieaa/auth-app-session-options v2.0.9

This module shows you a simple and basic example of how to extend session options. You can use this module and the documentation to create your own npm packages / modules, specifically this module demonstrates how to create your own SessionOptions module as a importable package. This module also demonstrates how to extend properties of SessionOptions so that your new module has basically everything SessionOptions has, but overrides properties you need to change, such as the session object's length used with a crypto library to generate a sessionToken. Generally your session will also need to have expirations and a sliding window date. Other properties of a session such as 1. the user's key the session belongs to and 2.deviceInformation is usually not configurable to this degree. Additionally, passwords are not commonly stored with session information in this way.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free