Is It Safe To Inject Authentication State Provider In Mainlayout?