Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rio-cloud/rio-session-expired-info

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rio-cloud/rio-session-expired-info

The RIO Session Expired Dialog

  • 1.0.0-0
  • npm
  • Socket score

Version published
Weekly downloads
961
increased by4.91%
Maintainers
4
Weekly downloads
 
Created
Source

RIO Session Expired Info

Provides the SessionExpiredDialog component that can be used to inform the user about their expired session.

🔋Comes "batteries included", meaning you don't need to provide the translations. Just the current locale of your app.

Installation

Before installing, make sure you have these dependencies in your project already as they're needed by this package:

  • react version 16.7 or above
  • react-dom version 16.7 or above
  • react-intl version 5.24.8 or above
  • @rio-cloud/rio-uikit version 0.15 or above

Next, add the npm package to your project:

npm install @rio-cloud/rio-session-expired-info --save

Usage

import { SessionExpiredDialog } from '@rio-cloud/rio-session-expired-info';

const Example = () => {
    const [showDialog, setShowDialog] = useState(false);
    
    const handleDialogClose = () => {
        setShowDialog(false);
        // you could perform other things, e.g. track that the user deliberately wants to stay in the current page
    };

    return (
        <SessionExpiredDialog
            show={showDialog}
            onClose={handleDialogClose}
            locale="en-GB"
        />
    );
}

License

Both @rio-cloud/rio-uikit and @rio-cloud/rio-session-expired-info are licensed under the Apache 2.0 license.

You can see the full license text in LICENSE.

Development

A local demo page can be started with npm start. You can view it at http://localhost:3000.

TODOs

  • re-add license checker
  • update README, docs, etc
  • add https://www.npmjs.com/package/np for publishing
  • completely clean up pipeline(s)
  • remove s3 + deployment + distribution

FAQs

Package last updated on 15 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc