Example for setting component after checking auth