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

feat(auth, revokeToken): sign in with apple revokeToken API #7239

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

donaldkwong
Copy link
Contributor

@donaldkwong donaldkwong commented Jul 14, 2023

Description

Apple requires apps support revocation of the Sign in with Apple token when a user wants to delete their account. Firebase added this support in the Firebase Auth iOS SDK. This PR adds the JS ReactNative bindings so that it can be called from JS.

Related issues

N/A

Release Summary

Added support for revoking a Sign in with Apple token

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan

This is the same code that I patched into my own project to revoke Sign in with Apple tokens. I tested it extensively in that app. Unfortunately, I'm not allowed to provide screenshots or videos from that app because it is proprietary.

To make sure this works with your app, it's important to follow the steps outlined here, specifically creating a private key with Apple and filling out the Services ID and OAuth code flow portions on Firebase correctly.


Think react-native-firebase is great? Please consider supporting the project with any of the below:

🔥

@vercel
Copy link

vercel bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-firebase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 6:17pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
react-native-firebase-next ⬜️ Ignored (Inspect) Jul 17, 2023 6:17pm

@CLAassistant
Copy link

CLAassistant commented Jul 14, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

Thanks! Just verified this has been out for a while (firebase-ios-sdk 10.8.0) which shouldn't be a breaking change for anyone since I did a break on the firebase-ios-sdk 10.8.0 release itself

I pushed a commit that fixes up the lint errors, CI should go green with this

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Jul 17, 2023
@mikehardy mikehardy changed the title feat(revoke): add support for revokeToken API feat(auth, revokeToken): sign in with apple revokeToken API Jul 17, 2023
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #7239 (88df25e) into main (4c666df) will decrease coverage by 15.29%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##               main    #7239       +/-   ##
=============================================
- Coverage     69.09%   53.80%   -15.29%     
- Complexity        0      735      +735     
=============================================
  Files           129      231      +102     
  Lines          5363    11628     +6265     
  Branches       1206     1864      +658     
=============================================
+ Hits           3705     6255     +2550     
- Misses         1564     5026     +3462     
- Partials         94      347      +253     

@mikehardy mikehardy merged commit 2b9dc73 into invertase:main Jul 17, 2023
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Jul 17, 2023
@mikehardy
Copy link
Collaborator

Releasing this now as should-be 18.3.0 - thanks again!

@donaldkwong
Copy link
Contributor Author

donaldkwong commented Jul 19, 2023

Sorry, was out of town earlier this week so I couldn't respond. Thanks for fixing up the lint issues and merging!

@donaldkwong donaldkwong deleted the dwong/revoke branch July 19, 2023 22:56
@efstathiosntonas
Copy link
Contributor

Thanks folks, it was a pain to do this from the backend.

exaby73 pushed a commit that referenced this pull request Jul 25, 2023
* feat(revoke): add support for revokeToken API

* Fixed there/their

* style(auth, lint): result of `yarn lint:android && yarn lint:ios:fix`

---------

Co-authored-by: Mike Hardy <github@mikehardy.net>
exaby73 pushed a commit that referenced this pull request Aug 8, 2023
* feat(revoke): add support for revokeToken API

* Fixed there/their

* style(auth, lint): result of `yarn lint:android && yarn lint:ios:fix`

---------

Co-authored-by: Mike Hardy <github@mikehardy.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants