active-session-library

Active Session Library (ASL) is responsible for monitoring user activity and executing a callback when the user is not active in a given period of time.


Keywords
react, nextjs, next.js, activity, active, timeout, session, timer, Active session, idle timer, session timeout, idle
License
MIT
Install
npm install active-session-library@1.1.1

Documentation

Active Session Library (ASL)

This is Active Session Library (ASL) documentation (Here)

What's inside?

This repository uses Yarn as a package manager. It includes the following packages/examples:

Examples and Packages

  • with-nextjs: a Next.js app
  • with-create-react-app: a create-react-app app
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This repository has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

cd active-session-library
yarn run build

Develop

To develop all apps and packages, run the following command:

cd active-session-library
yarn run dev