Fix authentication state persistence and admin role display

- Implement complete authentication system with JWT token validation
- Add auth provider with persistent login state across page refreshes
- Create multilingual login/register forms with Material-UI components
- Fix token validation using raw SQL queries to bypass Prisma sync issues
- Add comprehensive error handling for expired/invalid tokens
- Create profile and settings pages with full i18n support
- Add proper user role management (admin/user) with database sync
- Implement secure middleware with CSRF protection and auth checks
- Add debug endpoints for troubleshooting authentication issues
- Fix Zustand store persistence for authentication state

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
andupetcu
2025-09-21 01:06:30 +03:00
parent 62ca73b2ac
commit 196ca00194
174 changed files with 181207 additions and 179 deletions

View File

@@ -0,0 +1,77 @@
{
"chapterNum": 13,
"verses": [
{
"verseNum": 1,
"text": "So Abram went up out of Egypt into the Negev—he and his wife and all his possessions—and Lot was with him."
},
{
"verseNum": 2,
"text": "And Abram had become extremely wealthy in livestock and silver and gold."
},
{
"verseNum": 3,
"text": "From the Negev he journeyed from place to place toward Bethel, until he came to the place between Bethel and Ai where his tent had formerly been pitched,"
},
{
"verseNum": 4,
"text": "to the site where he had built the altar. And there Abram called on the name of the LORD."
},
{
"verseNum": 5,
"text": "Now Lot, who was traveling with Abram, also had flocks and herds and tents."
},
{
"verseNum": 6,
"text": "But the land was unable to support both of them while they stayed together, for they had so many possessions that they were unable to coexist."
},
{
"verseNum": 7,
"text": "And there was discord between the herdsmen of Abram and the herdsmen of Lot. At that time the Canaanites and the Perizzites were also living in the land."
},
{
"verseNum": 8,
"text": "So Abram said to Lot, “Please let there be no contention between you and me, or between your herdsmen and my herdsmen. After all, we are brothers."
},
{
"verseNum": 9,
"text": "Is not the whole land before you? Now separate yourself from me. If you go to the left, I will go to the right; if you go to the right, I will go to the left.”"
},
{
"verseNum": 10,
"text": "And Lot looked out and saw that the whole plain of the Jordan, all the way to Zoar, was well watered like the garden of the LORD, like the land of Egypt. (This was before the LORD destroyed Sodom and Gomorrah.)"
},
{
"verseNum": 11,
"text": "So Lot chose the whole plain of the Jordan for himself and set out toward the east. And Abram and Lot parted company."
},
{
"verseNum": 12,
"text": "Abram lived in the land of Canaan, but Lot settled in the cities of the plain and pitched his tent toward Sodom."
},
{
"verseNum": 13,
"text": "But the men of Sodom were wicked, sinning greatly against the LORD."
},
{
"verseNum": 14,
"text": "After Lot had departed, the LORD said to Abram, “Now lift up your eyes from the place where you are, and look to the north and south and east and west,"
},
{
"verseNum": 15,
"text": "for all the land that you see, I will give to you and your offspring forever."
},
{
"verseNum": 16,
"text": "I will make your offspring like the dust of the earth, so that if one could count the dust of the earth, then your offspring could be counted."
},
{
"verseNum": 17,
"text": "Get up and walk around the land, through its length and breadth, for I will give it to you.”"
},
{
"verseNum": 18,
"text": "So Abram moved his tent and went to live near the Oaks of Mamre at Hebron, where he built an altar to the LORD."
}
]
}