Authentication: Improved tokens and fixed expiration check

- Tokens are reissued now every login. This will essentially prevent
ever logging in again since the 30 day window refreshes.
- Fixed a bug checking the expiration