Go to file
Franklin a117b55ff4 Added credential creation to the service fn 2023-09-21 09:27:37 -04:00
.idea Committ 2023-09-20 16:23:29 -04:00
migrations Almost all daos 2023-09-20 17:49:40 -04:00
sql/schema Committ 2023-09-20 16:23:29 -04:00
src Added credential creation to the service fn 2023-09-21 09:27:37 -04:00
.gitignore Committ 2023-09-20 16:23:29 -04:00
Cargo.lock Starting to see services being made 2023-09-20 23:31:16 -04:00
Cargo.toml Starting to see services being made 2023-09-20 23:31:16 -04:00
Readme.md Committ 2023-09-20 16:23:29 -04:00

Readme.md

User-lib

by Franklin Blanco

This library is my attempt at developing a recyclable utility for different projects, and not having to setup an authentication microservice each time I start a new project.

Must use Postgres!

How to use?

Setup:

  • Add this library to your Cargo.toml
  • Copy the migrations from the migrations folder inside this library into your migrations
  • Add the user_lib::setup() function to your main. Make sure to pass it a PgPool
  • Add the user_lib::routes to your actix_web server (register, authenticate, change_password, refresh_token) Usage: