Pass a custom authentication method to restrict access to the dashboard