Change expiration check to allow users with expired token to get a new one
Use Rabl for json api actions