Implement auth in new window