joshsoftware / joshsoftware/peerly

Employee signin and signup

Open
#25 6 comments 0 reactions 2 assignees Claimed by @the-spectator View on GitHub
enhancement go-backend
Dominant language
Go
Stars
10
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Tasks:
- [x] Add users table migration

- [x] Implement /login endpoint as per the [flow](https://github.com/joshsoftware/peerly/wiki/API-side-Login-and-Signup-flow)

- [x] Add user_blacklisted_tokens table

- [x] Add logout API (this should create an entry of user token in user_blacklisted_tokens)

- [x] Task to clean up user_black_listed token when the token in table expires expires

- [x] Implement a way to check for valid login/JWT on each request (something we can call in http handler functions)

Acceptance criteria:
1. New / Existing users should be able to login
2. All users signed up from this flow should have `Employee` role

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.