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

Added new new methods to WordPressAuthenticatorDelegate to store site… #642

Closed
wants to merge 4 commits into from

Conversation

anitaa1990
Copy link

Closes #641
Ref: woocommerce/woocommerce-ios/issues/3571

Changes

  • Adds two new methods to WordPressAuthenticatorDelegate:
    • shouldStoreLoginSiteAddress() – This can be used by the host apps if we want to store the site address in UserDefaults, after the site address verification is successful.
    • storeLoginSiteAddress() – This method captures the site address and can be used by the Woo app to store this address in UserDefaults.
  • This might require changes to the WordPress app too. I can open a PR in that repository once this PR has been approved.

How to test

Disclaimer

This is my first time working on iOS and the WordPress Authenticator in a while so please feel free to leave any suggestions or improvements to the current code :)

@anitaa1990 anitaa1990 added the enhancement New feature or request label Mar 10, 2022
@jaclync jaclync self-assigned this Mar 11, 2022
@anitaa1990
Copy link
Author

I will close this PR since the Woo issue can be fixed without making changes to the login library 😅

@anitaa1990 anitaa1990 closed this Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow host apps to store the site address entered during the login flow
2 participants