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,85 @@
{
"chapterNum": 33,
"verses": [
{
"verseNum": 1,
"text": "Now Jacob looked up and saw Esau coming toward him with four hundred men. So he divided the children among Leah, Rachel, and the two maidservants."
},
{
"verseNum": 2,
"text": "He put the maidservants and their children in front, Leah and her children next, and Rachel and Joseph at the rear."
},
{
"verseNum": 3,
"text": "But Jacob himself went on ahead and bowed to the ground seven times as he approached his brother."
},
{
"verseNum": 4,
"text": "Esau, however, ran to him and embraced him, threw his arms around his neck, and kissed him. And they both wept."
},
{
"verseNum": 5,
"text": "When Esau looked up and saw the women and children, he asked, “Who are these with you?”\n \nJacob answered, “These are the children God has graciously given your servant.”"
},
{
"verseNum": 6,
"text": "Then the maidservants and their children approached and bowed down."
},
{
"verseNum": 7,
"text": "Leah and her children also approached and bowed down, and then Joseph and Rachel approached and bowed down."
},
{
"verseNum": 8,
"text": "“What do you mean by sending this whole company to meet me?” asked Esau.\n \n“To find favor in your sight, my lord,” Jacob answered."
},
{
"verseNum": 9,
"text": "“I already have plenty, my brother,” Esau replied. “Keep what belongs to you.”"
},
{
"verseNum": 10,
"text": "But Jacob insisted, “No, please! If I have found favor in your sight, then receive this gift from my hand. For indeed, I have seen your face, and it is like seeing the face of God, since you have received me favorably."
},
{
"verseNum": 11,
"text": "Please accept my gift that was brought to you, because God has been gracious to me and I have all I need.” So Jacob pressed him until he accepted."
},
{
"verseNum": 12,
"text": "Then Esau said, “Let us be on our way, and I will go ahead of you.”"
},
{
"verseNum": 13,
"text": "But Jacob replied, “My lord knows that the children are frail, and I must care for sheep and cattle that are nursing their young. If they are driven hard for even a day, all the animals will die."
},
{
"verseNum": 14,
"text": "Please let my lord go ahead of his servant. I will continue on slowly, at a comfortable pace for the livestock and children, until I come to my lord at Seir.”"
},
{
"verseNum": 15,
"text": "“Let me leave some of my people with you,” Esau said.\n \nBut Jacob replied, “Why do that? Let me find favor in the sight of my lord.”"
},
{
"verseNum": 16,
"text": "So that day Esau started on his way back to Seir,"
},
{
"verseNum": 17,
"text": "but Jacob went on to Succoth, where he built a house for himself and shelters for his livestock; that is why the place was called Succoth."
},
{
"verseNum": 18,
"text": "After Jacob had come from Paddan-aram, he arrived safely at the city of Shechem in the land of Canaan, and he camped just outside the city."
},
{
"verseNum": 19,
"text": "And the plot of ground where he pitched his tent, he purchased from the sons of Hamor, Shechems father, for a hundred pieces of silver."
},
{
"verseNum": 20,
"text": "There he set up an altar and called it El-Elohe-Israel."
}
]
}