Coder Social home page Coder Social logo

neverovski / nodejs-rest-api Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 2.0 4.52 MB

A sample NodeJs application, demonstrating how to use JWT Authentication, with access tokens and refresh tokens.

License: MIT License

TypeScript 97.75% Dockerfile 0.41% HTML 1.77% JavaScript 0.07%
nodejs auth typescript sql jwt authentication authorization rest-api express facebook-oauth

nodejs-rest-api's People

Contributors

dependabot[bot] avatar neverovski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nodejs-rest-api's Issues

Forgot Password

Is your feature request related to a problem? Please describe.
Users currently face difficulties accessing their accounts when they forget their passwords. This can lead to frustration and a poor user experience.

Describe the solution you'd like
Implement a "Forgot Password" feature that allows users to easily reset their passwords. The solution should include a user-friendly interface with clear instructions and possibly incorporate additional security measures for account recovery.

Describe alternatives you've considered
An alternative could be sending temporary passwords via email, but this method is less secure and may pose a risk to user accounts. The proposed "Forgot Password" feature aligns with industry standards for a secure and efficient password recovery process.

User session table

Is your feature request related to a problem? Please describe.
Currently, our platform lacks a dedicated mechanism for managing user sessions. This hinders our ability to track user activity, maintain session security, and implement features such as session timeout.

Describe the solution you'd like
Introduce a "User Session Table" to the database schema. This table will store essential information related to user sessions, including session tokens, user IDs, timestamps of session creation and last activity, and any relevant metadata. The implementation should also include mechanisms to manage session timeouts and ensure secure handling of session data.

RefreshSessions transfer from PostgreSQL to Redis

Is your feature request related to a problem? Please describe.
Our current session management system relies on PostgreSQL, leading to potential performance bottlenecks and scalability challenges. To address this, I propose migrating session management to Redis for improved performance, scalability, and better support for features like session refreshing.

Describe the solution you'd like
Implement a session management system that uses Redis as the primary storage for user sessions. This includes a mechanism for refreshing sessions, ensuring that user sessions remain active and secure. The implementation should handle the migration of existing sessions from PostgreSQL to Redis seamlessly.

Email address verification

Is your feature request related to a problem? Please describe.
Currently, our platform lacks a robust email address verification system. This poses potential security risks and hampers our ability to ensure the authenticity of user accounts.

Describe the solution you'd like
Implement a comprehensive "Email Address Verification" feature. Upon user registration or updating their email address, a verification email containing a unique link or code should be sent to the provided email address. Users will be required to click the link or input the code to confirm and activate their email addresses.

Describe alternatives you've considered
An alternative approach might involve relying solely on user input without verification. However, this can lead to inaccuracies, potential misuse, and compromise account security. The proposed "Email Address Verification" feature provides a standard and secure method to confirm the validity of user-provided email addresses.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.