🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@fenderdigital/react-session-activity

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fenderdigital/react-session-activity

Fender React UI Kit SessionActivity Component

latest
npmnpm
Version
2.4.1
Version published
Maintainers
8
Created
Source

SessionActivity for Fender React UI Kit

Description

It monitors a user's session. The session ends if no activity occurs between the create and expire dates. The session expire increases, if any user activity is detected.

Installation and Usage

yarn add @fenderdigital/react-session-activity --save
import SessionActivity from '@fenderdigital/react-session-activity';

Props

  • activity - stores user activity in an object to update the session with
  • createdAt - time session starts
  • children - renders any child elements
  • duration - session duration in seconds
  • expiresAt - time session expires
  • lengthOfSession - the length of a session in mins
  • onExpired - callback for when the session expires, with current state
  • onPlaying - callback for when the session is running, with current state
  • onStart - callback for when the session is running, with current state
  • onUpdate - callback for when the session updates, with current state
  • sessionId - uuid for a given session
  • timezone - users timezone
  • updatedAt - time session was updated
propNamepropTypedefaultValueisRequired
activityobjectnull-
createdAtstringnone-
childrennodenone-
durationnumbernone-
expiresAtstringnone-
lengthOfSessionnumber30-
onExpiredfunc() => {}-
onPlayingfunc() => {}-
onStartfunc() => {}-
onUpdatefunc() => {}-
sessionIdstringnone-
timezonestringnone-
updatedAtstringnone-

Development

Check the Monorepo README for development documentation.

Keywords

react

FAQs

Package last updated on 26 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts