adds necessary middleware to begin oauth on no token error