Is there any extension or overload method available for RedirectToAuthenticationLink script api method which should redirect to custom page url?

Is there any extension or overload method available for RedirectToAuthenticationLink script api method which should redirect to custom page/home page url instead of Login page if the user don't have a session?