miguelgrinberg / microblog-api

A modern (as of 2024) Flask API back end.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last seen not updated when DISABLE_AUTH=1

opened this issue · comments

Hi Miguel, thanks for your contributions to the Flask community.

I was going through the code, and noticed that on this line, we ping the user, but not commit the change. This may be by design, I'm not sure, but since verify_access_token commits the last_seen, I just thought I'll point it out.

Thanks

No particular reason. You could add a commit there if you wanted. Running with auth disabled is not something that is intended to ever be used, except when following the first few chapters of the React Mega-Tutorial.