vault backup: 2025-06-22 11:02:30

This commit is contained in:
2025-06-22 11:02:30 +03:30
parent 9c7c55a6a2
commit a7f5370340
189 changed files with 1475 additions and 797 deletions
@@ -777,9 +777,9 @@ console.log(roles); // ["Admin", "Editor", "User"]
### Summary
|Step|How it works|
|---|---|
|JWT creation|Multiple `"role"` claims added to token|
|Backend authorization|Validates token and checks if user has required roles|
|Frontend decoding|Extracts `role` claim(s) as array of strings|
|Frontend UI control|Shows or hides content based on roles|
| Step | How it works |
| --------------------- | ----------------------------------------------------- |
| JWT creation | Multiple `"role"` claims added to token |
| Backend authorization | Validates token and checks if user has required roles |
| Frontend decoding | Extracts `role` claim(s) as array of strings |
| Frontend UI control | Shows or hides content based on roles |