Calls the authCheckUrl to check if the user is authenticated. The URL should return a JSON response with
just true or false to indicate if the user is authenticated. If user is authenticated, it will call the
function (fn), otherwise it will redirect to authRedirectUrl.
Calls the authCheckUrl to check if the user is authenticated. The URL should return a JSON response with just
true
orfalse
to indicate if the user is authenticated. If user is authenticated, it will call the function (fn), otherwise it will redirect toauthRedirectUrl
.