How to sign out user after a period of time

This page summarizes the projects mentioned and recommended in the original post on /r/SaaS

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Keycloak

    Open Source Identity and Access Management For Modern Applications and Services

  • Good. Look into some providers and see what fits your software and business. Auth0 would be my first recommendation, or if you're interested in OSS and self-hosting instead, maybe Keycloak.

  • Passport

    Simple, unobtrusive authentication for Node.js.

  • I use PassportJS to manage authentication strategies and express-session with connect-redis to manage user sessions. What this means is that when a user logs in, their session is created on redis and has an identifier assigned to it which is stored in a an http only cookie on the user s browser with 2w expiry time. If they login again, I extend the expiration date (possible using express-session)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • node-argon2

    Node.js bindings for Argon2 hashing algorithm

  • Though I am using bcrypt to hash passwords, recommended approach currently is argon2

  • auth0-java

    Java client library for the Auth0 platform

  • Good. Look into some providers and see what fits your software and business. Auth0 would be my first recommendation, or if you're interested in OSS and self-hosting instead, maybe Keycloak.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts