+14
-2
lines changedFilter options
+14
-2
lines changed Original file line number Diff line number Diff line change
@@ -6,10 +6,22 @@ functions and the wonderful [FaunaDB](https://fauna.com).
6
6
7
7
## Motivation
8
8
9
-
To teach myself how JWTs work and also implement user registration done correctly<sup>\*</sup>.
9
+
I wrote this to teach myself how JWTs work and also implement user
10
+
registration done correctly<sup>\*</sup>.
10
11
11
12
> <sup>\*</sup>Waiting on https://github.com/zeit/node-file-trace/pull/53 to switch to argon2
12
13
13
14
## Implemented functionality
14
15
15
-
> WIP
16
+
- sign up as new user (or re-sign up as a deleted user which is transparent to the user)
17
+
- login and get JWT with 1 hour expiry (multiple logged in sessions supported)
18
+
- access protected route with only with a valid token
19
+
- logout (kills _all_ logged in sessions and invalidates all tokens for the user)
20
+
- delete user
21
+
22
+
## Code structure
23
+
24
+
- `api/*` holds the lambdas that map to each supported route
25
+
- `models/*` holds the models for the entities in the system (User & Token) and some helpers
26
+
- `errors/*` holds the custom error tooling for the codebase
27
+
- `utils/*` hold code structure and type level utilties
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4