Authentication service written in Golang with a MongoDB database
- /SignUp
- /SignIn
- /Validate
Request fields: Username, Password
Writes username and password (with hash and salt) in the database
Request fields: Username, Password
Returns a json with a JWT token and an expiration time
Request fields: JWT Token
Validates the token in the request
Get dependencies
go get go.mongodb.org/mongo-driver
make build
Generates an executable
make run
Runs the server