Тёмный

Next Js 14 Advanced Role & Permissions Management - Assign Role , Protect Routes & Server Actions👌 

Great Adib
Подписаться 11 тыс.
Просмотров 5 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@prodesigntz7776
@prodesigntz7776 8 месяцев назад
Great approach
@Isayas-no5nl
@Isayas-no5nl 5 месяцев назад
Bro, you put the permissions of users in sessions. How can you revalidate users' sessions for users already logged in when the admin changes their permissions?
@GreatAdib
@GreatAdib 5 месяцев назад
He has to login again then he can do that but if you want you do this without session as i have updated users model permission fields only which can be re validated easily you can skip permissions inside on backend next auth you don’t need to include it there just update user models using admin which can do the fine
@Isayas-no5nl
@Isayas-no5nl 5 месяцев назад
@@GreatAdib That means I must get the user's information from the database and check it before the user takes any action. Isn't it expensive to always fetch user information from the database and check their permissions for each request?
@GreatAdib
@GreatAdib 5 месяцев назад
@Isayas-no5nl you are not going to update permission all the time if admin wants then he can do it as a feature
@HenokGebresenbet
@HenokGebresenbet 8 месяцев назад
bro does this last part
@GreatAdib
@GreatAdib 8 месяцев назад
No advanced form handling video coming
@beatbox1759
@beatbox1759 8 месяцев назад
bro try hindi
@GreatAdib
@GreatAdib 8 месяцев назад
No my channel is in English bro besides i am from Bangladesh
@bhaveshmishra6998
@bhaveshmishra6998 8 месяцев назад
​@@GreatAdibit's ok man nice work bhai keep teaching us
Далее
This is how Halo felt as a kid 🤣 (phelan.davies)
00:14
10 common mistakes with the Next.js App Router
20:37
Просмотров 224 тыс.
All 17 React Best Practices (IMPORTANT!)
1:46:11
Просмотров 179 тыс.
How To Use Next.js 14 Server Actions
21:06
Просмотров 26 тыс.
This is how Halo felt as a kid 🤣 (phelan.davies)
00:14