First and foremost, if restarting the computer logs you out, the culprit might be your browser clearing out the saved passwords. Adjusting the settings can help retain login details, and to do so, ...
To factory reset a Mac without getting stuck on the Apple ID sign-out screen, first complete key steps manually: back up your data, quit running apps, disconnect devices, turn off Find My Mac, and ...