Library and public computers are locked down in the same way school devices are, and for the same reasons. A browser is generally all you get.
The bigger risk is what you leave behind. Signing out is essential, and so is not saving a password in a browser that a hundred other people use.
A sign-in that uses an emailed code rather than a stored password suits this well: there is no password to be saved, and the code is spent once.