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

react-session.manager.sk

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-session.manager.sk

A react component used to manage token sessions with flask backend

  • 1.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-86.67%
Maintainers
0
Weekly downloads
 
Created
Source

react-session.mananger.sk

This is used in conjunction with a custom flask app in order to manage user sessions.

Installation

npm install react-session.manager.sk

Usage

<SessionManagerProvider
    userLoader={who} // function to get user data
    refreshToken={refresh} // function to refresh token
    AuthenticatedAxiosObject={axiosAuth} // axios object with token
    refreshTimer={config.server.tokenRefreshTimer} // time to refresh token
    dataRefresh={config.server.dataRefreshTimer} // time to refresh data
    appVersion={config.appVersion} // app version
    toastOptions={{
    icon: true,
    toastClassName: config.theme.Notification.ThemeNotifications
        ? config.theme.Notification.MaterialNotifications
        ? "custToast materialToast"
        : "custToast"
        : "",
    }}
    >
        <App />
</SessionManagerProvider>

Testing using another project

Linking react and react-dom

Link react and react-dom to the project you want to test with.

cd node_modules/react
npm link
cd node_modules/react-dom
npm link

Run the following in package root directory

npm link react react-dom

FAQs

Package last updated on 16 Aug 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