help me with session based authentication in actix web please!!!

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • talent.io - Download talent.io’s Tech Salary Report
  • SonarLint - Clean code begins in your IDE with SonarLint
  • rust-jwt

    JWT lib in rust

    So first I generate a token using the jsonwebtoken crate. This accepts a struct that is serde serializable and deserializeable. After that I construct the Cookie and send it as the response to the request for the '/login' route. You can see my struct here (I named it JWT, but that is not the best name ever, this is the data included in the JWT token): https://github.com/horvbalint/speer/blob/main/backend/src/jwt.rs And then the login route here (line 88): https://github.com/horvbalint/speer/blob/main/backend/src/routes.rs

  • speer

    Speer is a fast, privacy focused and open source communication app for various use cases

    So first I generate a token using the jsonwebtoken crate. This accepts a struct that is serde serializable and deserializeable. After that I construct the Cookie and send it as the response to the request for the '/login' route. You can see my struct here (I named it JWT, but that is not the best name ever, this is the data included in the JWT token): https://github.com/horvbalint/speer/blob/main/backend/src/jwt.rs And then the login route here (line 88): https://github.com/horvbalint/speer/blob/main/backend/src/routes.rs

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • dev_api

    Here's our open sourced code implementing JWT with refresh tokens: https://github.com/deversify/dev_api/blob/main/src/jwt/mod.rs

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