fixed issue where resource wasn't being passed when a gauth token failed