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,69 @@
{
"chapterNum": 16,
"verses": [
{
"verseNum": 1,
"text": "Now Abrams wife Sarai had borne him no children, but she had an Egyptian maidservant named Hagar."
},
{
"verseNum": 2,
"text": "So Sarai said to Abram, “Look now, the LORD has prevented me from bearing children. Please go to my maidservant; perhaps I can build a family by her.”\n \nAnd Abram listened to the voice of Sarai."
},
{
"verseNum": 3,
"text": "So after he had lived in Canaan for ten years, his wife Sarai took her Egyptian maidservant Hagar and gave her to Abram to be his wife."
},
{
"verseNum": 4,
"text": "And he slept with Hagar, and she conceived. But when Hagar realized that she was pregnant, she began to despise her mistress."
},
{
"verseNum": 5,
"text": "Then Sarai said to Abram, “May the wrong done to me be upon you! I delivered my servant into your arms, and ever since she saw that she was pregnant, she has treated me with contempt. May the LORD judge between you and me.”"
},
{
"verseNum": 6,
"text": "“Here,” said Abram, “your servant is in your hands. Do whatever you want with her.” Then Sarai treated Hagar so harshly that she fled from her."
},
{
"verseNum": 7,
"text": "Now the angel of the LORD found Hagar by a spring of water in the desert—the spring along the road to Shur."
},
{
"verseNum": 8,
"text": "“Hagar, servant of Sarai,” he said, “where have you come from, and where are you going?”\n \n“I am running away from my mistress Sarai,” she replied."
},
{
"verseNum": 9,
"text": "So the angel of the LORD told her, “Return to your mistress and submit to her authority.”"
},
{
"verseNum": 10,
"text": "Then the angel added, “I will greatly multiply your offspring so that they will be too numerous to count.”"
},
{
"verseNum": 11,
"text": "The angel of the LORD proceeded:\n \n “Behold, you have conceived and will bear a son.\n And you shall name him Ishmael,\n for the LORD has heard your cry of affliction."
},
{
"verseNum": 12,
"text": "He will be a wild donkey of a man,\n and his hand will be against everyone,\n and everyones hand against him;\n he will live in hostility\n toward all his brothers.”"
},
{
"verseNum": 13,
"text": "So Hagar gave this name to the LORD who had spoken to her: “You are the God who sees me,” for she said, “Here I have seen the One who sees me!”"
},
{
"verseNum": 14,
"text": "Therefore the well was called Beer-lahai-roi. It is located between Kadesh and Bered."
},
{
"verseNum": 15,
"text": "And Hagar bore Abram a son, and Abram gave the name Ishmael to the son she had borne."
},
{
"verseNum": 16,
"text": "Abram was eighty-six years old when Hagar bore Ishmael to him."
}
]
}