authDirect() function is used to redirect to another page
if the current user session is active.
if( isUser() ) {
redirect('some-url');
}
authDirect() as shown below
authDirect('some-url');