Skip to content

Commit 058342c

Browse files
authored
Create README.md
1 parent d01381c commit 058342c

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Deno - JWT Access and Refresh Tokens Authentication
2+
3+
In this article, you'll learn how to implement stateless authentication in Deno using JSON Web Tokens. As we all know, JSON Web Tokens can only be invalidated when they expire, so we'll include a persistent storage like Redis to serve as an extra layer of security.
4+
5+
![Deno - JWT Access and Refresh Tokens Authentication](https://codevoweb.com/wp-content/uploads/2022/12/Deno-JWT-Access-and-Refresh-Tokens-Authentication.webp)
6+
7+
## Topics Covered
8+
9+
- Run the Deno JWT Authentication API Locally
10+
- JWT Authentication Flow
11+
- Flaws of Stateless JWT Authentication
12+
- JWT Invalidation/Revocation
13+
- Resource Access Denial
14+
- Stale Data
15+
- JWT can be Hijacked
16+
- Suggested Solution of JWT Loopholes
17+
- Store Revoked JWTs in a Database
18+
- Store JWT Metadata in a Persistence Layer
19+
- Setup the Deno Project
20+
- Setup Redis and MongoDB with Docker
21+
- Connect to Redis and MongoDB Servers
22+
- Connect to Redis Server
23+
- Connect to MongoDB Server
24+
- Create the Database Model
25+
- Generate the Private and Public Keys
26+
- Generate the Crypto Keys
27+
- Convert the String Keys to Crypto Keys
28+
- Sign and Verify the JSON Web Tokens
29+
- Sign the JWT
30+
- Verify the JWT
31+
- Create the Authentication Route Handlers
32+
- SignUp User Controller
33+
- Login User Controller
34+
- Refresh Access Token Controller
35+
- Logout User Controller
36+
- Get me Controller
37+
- Create an Auth Middleware Guard
38+
- Create the API Routes
39+
- Register the API Router
40+
- Test the JWT Authentication API
41+
- SignUp User
42+
- SignIn User
43+
- Get Profile Information
44+
- Refresh Access Token
45+
- Logout User
46+
47+
48+
Read the entire article here: [https://codevoweb.com/deno-jwt-access-and-refresh-tokens-authentication/](https://codevoweb.com/deno-jwt-access-and-refresh-tokens-authentication/)
49+

0 commit comments

Comments
 (0)