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,125 @@
{
"chapterNum": 6,
"verses": [
{
"verseNum": 1,
"text": "But the LORD said to Moses, “Now you will see what I will do to Pharaoh, for because of My mighty hand he will let the people go; because of My strong hand he will drive them out of his land.”"
},
{
"verseNum": 2,
"text": "God also told Moses, “I am the LORD."
},
{
"verseNum": 3,
"text": "I appeared to Abraham, to Isaac, and to Jacob as God Almighty, but by My name the LORD I did not make Myself known to them."
},
{
"verseNum": 4,
"text": "I also established My covenant with them to give them the land of Canaan, the land where they lived as foreigners."
},
{
"verseNum": 5,
"text": "Furthermore, I have heard the groaning of the Israelites, whom the Egyptians are enslaving, and I have remembered My covenant."
},
{
"verseNum": 6,
"text": "Therefore tell the Israelites: I am the LORD, and I will bring you out from under the yoke of the Egyptians and deliver you from their bondage. I will redeem you with an outstretched arm and with mighty acts of judgment."
},
{
"verseNum": 7,
"text": "I will take you as My own people, and I will be your God. Then you will know that I am the LORD your God, who brought you out from under the yoke of the Egyptians."
},
{
"verseNum": 8,
"text": "And I will bring you into the land that I swore to give to Abraham, Isaac, and Jacob. I will give it to you as a possession. I am the LORD!’”"
},
{
"verseNum": 9,
"text": "Moses relayed this message to the Israelites, but on account of their broken spirit and cruel bondage, they did not listen to him."
},
{
"verseNum": 10,
"text": "So the LORD said to Moses,"
},
{
"verseNum": 11,
"text": "“Go and tell Pharaoh king of Egypt to let the Israelites go out of his land.”"
},
{
"verseNum": 12,
"text": "But in the LORDs presence Moses replied, “If the Israelites will not listen to me, then why would Pharaoh listen to me, since I am unskilled in speech?”"
},
{
"verseNum": 13,
"text": "Then the LORD spoke to Moses and Aaron and gave them a charge concerning both the Israelites and Pharaoh king of Egypt, to bring the Israelites out of the land of Egypt."
},
{
"verseNum": 14,
"text": "These were the heads of their fathers houses:\n \n The sons of Reuben, the firstborn of Israel, were Hanoch and Pallu, Hezron and Carmi. These were the clans of Reuben."
},
{
"verseNum": 15,
"text": "The sons of Simeon were Jemuel, Jamin, Ohad, Jachin, Zohar, and Shaul, the son of a Canaanite woman. These were the clans of Simeon."
},
{
"verseNum": 16,
"text": "These were the names of the sons of Levi according to their records: Gershon, Kohath, and Merari. Levi lived 137 years."
},
{
"verseNum": 17,
"text": "The sons of Gershon were Libni and Shimei, by their clans."
},
{
"verseNum": 18,
"text": "The sons of Kohath were Amram, Izhar, Hebron, and Uzziel. Kohath lived 133 years."
},
{
"verseNum": 19,
"text": "The sons of Merari were Mahli and Mushi.\n \n These were the clans of the Levites according to their records."
},
{
"verseNum": 20,
"text": "And Amram married his fathers sister Jochebed, and she bore him Aaron and Moses. Amram lived 137 years."
},
{
"verseNum": 21,
"text": "The sons of Izhar were Korah, Nepheg, and Zichri."
},
{
"verseNum": 22,
"text": "The sons of Uzziel were Mishael, Elzaphan, and Sithri."
},
{
"verseNum": 23,
"text": "And Aaron married Elisheba, the daughter of Amminadab and sister of Nahshon, and she bore him Nadab and Abihu, Eleazar and Ithamar."
},
{
"verseNum": 24,
"text": "The sons of Korah were Assir, Elkanah, and Abiasaph. These were the clans of the Korahites."
},
{
"verseNum": 25,
"text": "Aarons son Eleazar married one of the daughters of Putiel, and she bore him Phinehas.\n \n These were the heads of the Levite families by their clans."
},
{
"verseNum": 26,
"text": "It was this Aaron and Moses to whom the LORD said, “Bring the Israelites out of the land of Egypt by their divisions.”"
},
{
"verseNum": 27,
"text": "Moses and Aaron were the ones who spoke to Pharaoh king of Egypt in order to bring the Israelites out of Egypt."
},
{
"verseNum": 28,
"text": "Now on the day that the LORD spoke to Moses in Egypt,"
},
{
"verseNum": 29,
"text": "He said to him, “I am the LORD; tell Pharaoh king of Egypt everything I say to you.”"
},
{
"verseNum": 30,
"text": "But in the LORDs presence Moses replied, “Since I am unskilled in speech, why would Pharaoh listen to me?”"
}
]
}