# Instagram API migration
According to the recent Apple requirements, all iOS apps that provide SSO have to also allow users to use Apple SSO too. We do not want to implement Apple SSO, thus app version 1.31 **WILL NOT** have Instagram auth at all (only linking).
## Steps
### CW25
- [x] Test `1.30.0` client on staging `lex-cloud@master`
- [x] Backup production DB
- [x] Deploy `lex-cloud@master` version `1.0.0` with new Instagram API to production (also supporting IG auth)
- Don't forget about pushing indexes
- [x] Run backend migration on production to create new `instagramAccount` collection
- [x] CodePush `1.30.1` with new IG API (incl. IG auth) to production (https://github.com/LexApp/lex-rn/tree/1.30.1)
- [x] Test IG login & IG profile linking
### CW26
- [x] Release app version `1.31.0` with new IG API (**WITHOUT IG auth**)
- [x] Codepush a `1.30.2` version that removes IG auth
- [x] Remove IG auth from the backend
- [ ] Remove Firestore `linkedIds` collection after making sure everything works
# Dev notes
## Initial Instagram sync
- All users will be `isInSync: false`. Should we prompt them to link Instagram after we migrated? Show Admin Message, show an exclamation mark in account settings?
- "Not in sync" state is an ongoing thing - we should have UX in place to inform users about incorrect linking. For example, deleted Lex connection in Instagram.
## Versioning
- We will start consistently versioning our software.
- each `lex-rn` release through Codepush will cause patch version to get increased
- Every deployment/release requires a dedicated tag
- Every tag requires changes to be stated in the github releases section
- External Codepush build version references will be mentioned in the github releases section.