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": 20,
"verses": [
{
"verseNum": 1,
"text": "Now Abraham journeyed from there to the region of the Negev and settled between Kadesh and Shur. While he was staying in Gerar,"
},
{
"verseNum": 2,
"text": "Abraham said of his wife Sarah, “She is my sister.” So Abimelech king of Gerar had Sarah brought to him."
},
{
"verseNum": 3,
"text": "One night, however, God came to Abimelech in a dream and told him, “You are as good as dead because of the woman you have taken, for she is a married woman.”"
},
{
"verseNum": 4,
"text": "Now Abimelech had not gone near her, so he replied, “Lord, would You destroy a nation even though it is innocent?"
},
{
"verseNum": 5,
"text": "Didnt Abraham tell me, She is my sister? And she herself said, He is my brother. I have done this in the integrity of my heart and the innocence of my hands.”"
},
{
"verseNum": 6,
"text": "Then God said to Abimelech in the dream, “Yes, I know that you did this with a clear conscience, and so I have kept you from sinning against Me. That is why I did not let you touch her."
},
{
"verseNum": 7,
"text": "Now return the mans wife, for he is a prophet; he will pray for you and you will live. But if you do not restore her, be aware that you will surely die—you and all who belong to you.”"
},
{
"verseNum": 8,
"text": "Early the next morning Abimelech got up and summoned all his servants; and when he described to them all that had happened, the men were terrified."
},
{
"verseNum": 9,
"text": "Then Abimelech called Abraham and asked, “What have you done to us? How have I sinned against you, that you have brought such tremendous guilt upon me and my kingdom? You have done things to me that should not be done.”"
},
{
"verseNum": 10,
"text": "Abimelech also asked Abraham, “What prompted you to do such a thing?”"
},
{
"verseNum": 11,
"text": "Abraham replied, “I thought to myself, Surely there is no fear of God in this place. They will kill me on account of my wife."
},
{
"verseNum": 12,
"text": "Besides, she really is my sister, the daughter of my father—though not the daughter of my mother—and she became my wife."
},
{
"verseNum": 13,
"text": "So when God had me journey from my fathers house, I said to Sarah, This is how you can show your loyalty to me: Wherever we go, say of me, “He is my brother.”’”"
},
{
"verseNum": 14,
"text": "So Abimelech brought sheep and cattle, menservants and maidservants, and he gave them to Abraham and restored his wife Sarah to him."
},
{
"verseNum": 15,
"text": "And Abimelech said, “Look, my land is before you. Settle wherever you please.”"
},
{
"verseNum": 16,
"text": "And he said to Sarah, “See, I am giving your brother a thousand pieces of silver. It is your vindication before all who are with you; you are completely cleared.”"
},
{
"verseNum": 17,
"text": "Then Abraham prayed to God, and God healed Abimelech and his wife and his maidservants, so that they could again bear children—"
},
{
"verseNum": 18,
"text": "for on account of Abrahams wife Sarah, the LORD had completely closed all the wombs in Abimelechs household."
}
]
}