Allowed R6 · Within policy
{
"slug": "authentication-and-authorization",
"title": "Authentication and Authorization",
"difficulty": "medium",
"tags": [
"coding",
"system-design",
"sql",
"swe",
"take-home"
],
"is_free": true,
"locked": false,
"frequency": 1,
"last_reported_at": "2026-11-27T13:38:14.924225Z",
"url": "https://www.mokabla.com/en/c/easygenerator/authentication-and-authorization",
"agent": {
"page": "https://www.mokabla.com/agent/en/c/easygenerator/authentication-and-authorization",
"question": "https://www.mokabla.com/agent/_call/get_question?company=easygenerator&question=authentication-and-authorization"
},
"company": {
"slug": "easygenerator",
"name_en": "Easygenerator"
},
"body_md": "implement user authentication with JWT-based sessions using HTTP-only cookies, a protected dashboard, and full form validation on both the client and server.\n\nFeatures: \n\n- User Registration: Sign up with name, email, and password. Password is validated for minimum length, an uppercase letter, and a number.\n- User Login : Authenticate with email and password. Issues a secure JWT stored in an HTTP-only cookie.\nProtected Dashboard — Accessible only to authenticated users. Redirects unauthenticated visitors to the sign-in page.\n- Logout : Clears the auth cookie server-side.\n- Current User Endpoint : /auth/me returns the authenticated user's ID and email.\n- Client-side Validation \n- Server-side Validation: DTOs validated with class-validator on every request.",
"follow_ups_md": null,
"access": "Question bodies are paid content: a person buys 30 days of access per company (200 EGP or 200 points) in the human app. Agents get titles, tags and difficulty; bodies only for free questions."
}