Describe the bug
The Edit Profile and Account Settings links that were just added may open the wrong account if you have several on the same server and have already logged into one. This is additionally affected by what account you are logged into in Safari.
To Reproduce
Log into two or more accounts on the same Mastodon instance.
Switch to one of those accounts.
Open the menu by tapping the profile icon in the upper left.
Tap Edit Profile or Account Settings.
You will get a modal dialog: "Metatext wants to log in with ."
Tap Continue.
If you are already logged into an account in Safari, the Mastodon web UI for editing a profile or account settings will appear.
It may not be the same account that is active in Metatext!
Expected behavior
The web views for Edit Profile and Account Settings should have their own cookie store per account in Metatext, so that I can log into the Mastodon web UI once per account inside Metatext, and then be able to open the correct Mastodon web UI for that account.
Screenshots
If applicable, add screenshots to help explain your problem.
(please complete the following information):
Device: iPhone 11 Pro Max
OS: iOS 16.0
App Version: 1.5.3
Additional context
I suspect this is because the web view shares cookies with Safari. (Apologies for the vagueness, I'm not sure which web view Metatext is using yet, still catching up on the codebase.) Isolating from Safari and using a per-account cookie store means that the user will always have to log in once per account in Metatext, even if they are already logged in in Safari, but means that they will get the correct account.
Multiple accounts on the same server are common for power users, especially admins.
Describe the bug The Edit Profile and Account Settings links that were just added may open the wrong account if you have several on the same server and have already logged into one. This is additionally affected by what account you are logged into in Safari.
To Reproduce
Expected behavior The web views for Edit Profile and Account Settings should have their own cookie store per account in Metatext, so that I can log into the Mastodon web UI once per account inside Metatext, and then be able to open the correct Mastodon web UI for that account.
Screenshots If applicable, add screenshots to help explain your problem.
(please complete the following information):
Additional context I suspect this is because the web view shares cookies with Safari. (Apologies for the vagueness, I'm not sure which web view Metatext is using yet, still catching up on the codebase.) Isolating from Safari and using a per-account cookie store means that the user will always have to log in once per account in Metatext, even if they are already logged in in Safari, but means that they will get the correct account.
Multiple accounts on the same server are common for power users, especially admins.