I'm trying to post to my database using the Share application extension in iOS. Is there any way I can use the same authentication sessions used by the container app? My database rules are currently set up to only allow authenticated users to read/write. This is fine for the container app, as the authentication occurs there and a session is set up. However I want to be able to add to the database from the Share sheet in iOS, and Apple does not allow to change much information between the container app and the app extension. I can store some benign data in group UserDefaults, but I would not like to store any sensitive information there (like user login details). I've been looking for a way to do this without leaving my database open to the outside world. I would welcome any suggestions or pointers.