Changing the EndPoint and Search Key post authentication

Try wrapping the SearchProvider in another component, and use the key on the wrapper.