def verify_token(token): """Verify user by token.""" g.user = User.verify_auth_token(token) return g.user is not None