Create a separate logged-in user toolbar #3

Open
opened 2026-06-25 15:39:14 +00:00 by eliribble · 1 comment
Owner

Currently the authentication mechanism is strewn throughout the script.js and index.html. Instead, it would be better to separate out this concern as a separate file, auth.js and to create a separate out another HTML file, auth.html, which contains the UI for the current user information and the logout button.

To do this, it's probably a good idea to add jinja2 for server-side rendering. It has the ability to create nice, smaller, separate components that can include each other.

Currently the authentication mechanism is strewn throughout the script.js and index.html. Instead, it would be better to separate out this concern as a separate file, `auth.js` and to create a separate out another HTML file, `auth.html`, which contains the UI for the current user information and the logout button. To do this, it's probably a good idea to add [jinja2](https://jinja.palletsprojects.com/en/stable/) for server-side rendering. It has the ability to create nice, smaller, separate components that can include each other.

The reason why you did the authentication logic was because you thought it was to difficult for me to do, and now you want me to do the logic myself?

The reason why you did the authentication logic was because you thought it was to difficult for me to do, and now you want me to do the logic myself?
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Gleipnir/mechaturk#3
No description provided.