This is a revision of a blog post I released at the end of 2020. It has been brought up to date with the newest version of ruby 3.2.0 and rails 7. I've also created a GitHub template for this if you'd like to fast track to put this into practice with a bit less setup time.
GitHub Template: [ Ссылка ]
Blog Post: [ Ссылка ]
Postman collection: [ Ссылка ]
0:00 Intro
2:25 Creating the app
4:26 rack-cors
5:22 Add gems
6:16 Configure devise
7:45 Create User
8:55 Create controllers
10:23 Customize routes
11:43 Devise JWT config
13:30 revocation strategy
20:00 UserSerializer
22:00 Update controllers
29:00 Postman testing
29:50 DisabledSessionError
33:40 RackSessionFix
36:28 Successful login
37:30 Logout with token
39:30 GET /current_user
44:20 GitHub template
47:15 Use Template
50:05 Outro & Next Steps
Ещё видео!