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,101 @@
{
"chapterNum": 22,
"verses": [
{
"verseNum": 1,
"text": "Some time later God tested Abraham and said to him, “Abraham!”\n \n“Here I am,” he answered."
},
{
"verseNum": 2,
"text": "“Take your son,” God said, “your only son Isaac, whom you love, and go to the land of Moriah. Offer him there as a burnt offering on one of the mountains, which I will show you.”"
},
{
"verseNum": 3,
"text": "So Abraham got up early the next morning, saddled his donkey, and took along two of his servants and his son Isaac. He split the wood for a burnt offering and set out for the place God had designated."
},
{
"verseNum": 4,
"text": "On the third day Abraham looked up and saw the place in the distance."
},
{
"verseNum": 5,
"text": "“Stay here with the donkey,” Abraham told his servants. “The boy and I will go over there to worship, and then we will return to you.”"
},
{
"verseNum": 6,
"text": "Abraham took the wood for the burnt offering and placed it on his son Isaac. He himself carried the fire and the sacrificial knife, and the two of them walked on together."
},
{
"verseNum": 7,
"text": "Then Isaac said to his father Abraham, “My father!”\n \n“Here I am, my son,” he replied.\n \n“The fire and the wood are here,” said Isaac, “but where is the lamb for the burnt offering?”"
},
{
"verseNum": 8,
"text": "Abraham answered, “God Himself will provide the lamb for the burnt offering, my son.” And the two walked on together."
},
{
"verseNum": 9,
"text": "When they arrived at the place God had designated, Abraham built the altar there and arranged the wood. He bound his son Isaac and placed him on the altar, atop the wood."
},
{
"verseNum": 10,
"text": "Then Abraham reached out his hand and took the knife to slaughter his son."
},
{
"verseNum": 11,
"text": "Just then the angel of the LORD called out to him from heaven, “Abraham, Abraham!”\n \n“Here I am,” he replied."
},
{
"verseNum": 12,
"text": "“Do not lay a hand on the boy or do anything to him,” said the angel, “for now I know that you fear God, since you have not withheld your only son from me.”"
},
{
"verseNum": 13,
"text": "Then Abraham looked up and saw behind him a ram in a thicket, caught by its horns. So he went and took the ram and offered it as a burnt offering in place of his son."
},
{
"verseNum": 14,
"text": "And Abraham called that place The LORD Will Provide. So to this day it is said, “On the mountain of the LORD it will be provided.”"
},
{
"verseNum": 15,
"text": "And the angel of the LORD called to Abraham from heaven a second time,"
},
{
"verseNum": 16,
"text": "saying, “By Myself I have sworn, declares the LORD, that because you have done this and have not withheld your only son,"
},
{
"verseNum": 17,
"text": "I will surely bless you, and I will multiply your descendants like the stars in the sky and the sand on the seashore. Your descendants will possess the gates of their enemies."
},
{
"verseNum": 18,
"text": "And through your offspring all nations of the earth will be blessed, because you have obeyed My voice.”"
},
{
"verseNum": 19,
"text": "Abraham went back to his servants, and they got up and set out together for Beersheba. And Abraham settled in Beersheba."
},
{
"verseNum": 20,
"text": "Some time later, Abraham was told, “Milcah has also borne sons to your brother Nahor:"
},
{
"verseNum": 21,
"text": "Uz the firstborn, his brother Buz, Kemuel (the father of Aram),"
},
{
"verseNum": 22,
"text": "Chesed, Hazo, Pildash, Jidlaph, and Bethuel.”"
},
{
"verseNum": 23,
"text": "And Bethuel became the father of Rebekah. Milcah bore these eight sons to Abrahams brother Nahor."
},
{
"verseNum": 24,
"text": "Moreover, Nahors concubine, whose name was Reumah, bore Tebah, Gaham, Tahash, and Maacah."
}
]
}