Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old legacyOauthToken code (from 2016) #1946

Merged
merged 2 commits into from Feb 21, 2024

Conversation

amy-at-kickstarter
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter commented Feb 14, 2024

πŸ“² What

Remove a switch in the code that checks for a legacy OAuth token.

πŸ€” Why

As part of OAuth (or as a fast follow), we're going to swap the apps over to save our OAuth tokens in the keychain. I noticed while poking around our login code that we have this very, very old migration. I look at the commit 9e53ab9 where this was added, and it was back in 2016. If I'm reading our tags right, it was shipped around version 3.0.2, which is so old it's not even tracked in Firebase.

I think it's resoundingly safe to delete this, and it will make the code cleaner when we add a new migration for the new way to store OAuth tokens.

Worst case scenario is that someone upgrading from a truly ancient version of the app will have to log in again. πŸ€·β€β™€οΈ

βœ”οΈ TODO

  • Login before the commit, and again afterwards, to double-check I didn't break anything

@nativeksr
Copy link
Collaborator

SwiftFormat found issues:

File Rules
Library/AppEnvironment.swift:397:1 warning: (wrap) Wrap lines that exceed the specified maximum width.
Library/AppEnvironment.swift:398:1 warning: (wrap) Wrap lines that exceed the specified maximum width.
Library/AppEnvironment.swift:399:1 warning: (wrap) Wrap lines that exceed the specified maximum width.

Generated by 🚫 Danger

Copy link
Contributor

@ifosli ifosli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Do the login test in the TODOs before submitting, please, if you haven't yet :)

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/remove-legacy-oauth-token branch from d1a1148 to 62ac189 Compare February 20, 2024 20:01
@amy-at-kickstarter amy-at-kickstarter merged commit 2b36c16 into main Feb 21, 2024
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/remove-legacy-oauth-token branch February 21, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants