React-native-firebase: Auth: It is not possible to unlink linked providers

Created on 12 Jul 2017  路  3Comments  路  Source: invertase/react-native-firebase

I can link users to providers with the function linkWithCredential: https://github.com/invertase/react-native-firebase/blob/master/lib/modules/auth/user.js#L116

However, the unlink function seems to be missing: https://firebase.google.com/docs/auth/web/account-linking#unlink-an-auth-provider-from-a-user-account

Bug Authentication

Most helpful comment

Implemented on v2.0.3:
firebase.auth().currentUser.unlink(providerId: string): Promise<FirebaseUser>

All 3 comments

@Damnum good spot! We'll look at getting this implemented as soon as we can. Alternatively, if it's holding you up, please feel free to submit a PR.

@Damnum Taking a look at this now, will push up a patch for it shortly.

Implemented on v2.0.3:
firebase.auth().currentUser.unlink(providerId: string): Promise<FirebaseUser>

Was this page helpful?
0 / 5 - 0 ratings