vatsal-panchal/aws-auth-system ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple AWS style auth system where people can register, log in, and then use a session token to see their protected identity details.
I want a Node app with TypeScript, Express, and MongoDB. Users should be able to create an account with a username, email, and password, then get back an access key id and ARN style identity info. After that, they should be able to log in with their access key id and secret access key, and receive a JWT session token. With that token, add a protected endpoint that returns the caller identity only if the token is valid.
Please make it easy to run locally with environment variables for the port, MongoDB connection, JWT secret, and token expiry. Include the basic project setup, a clean API structure, and enough error handling so bad requests and invalid logins are handled nicely. If you need to check current docs for any dependencies, feel free to look them up online.
Are you gonna build this?
make sure you review the code using arcumet