Skip to content

Commit 3c490e0

Browse files
authored
feat(react-hooks) React hook API - @illuminist
2 parents 68b2488 + 275729b commit 3c490e0

14 files changed

+1200
-48
lines changed

docs/api/firebaseInstance.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [unWatchEvent](#unwatchevent)
1818
- [promiseEvents](#promiseevents)
1919
- [login](#login)
20+
- [handleRedirectResult](#handleredirectresult)
2021
- [logout](#logout)
2122
- [createUser](#createuser)
2223
- [resetPassword](#resetpassword)
@@ -331,6 +332,17 @@ Logs user into Firebase. For examples, visit the
331332

332333
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** Containing user's auth data
333334

335+
## handleRedirectResult
336+
337+
Logs user into Firebase using external. For examples, visit the
338+
[auth section](/docs/recipes/auth.md)
339+
340+
**Parameters**
341+
342+
- `authData` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Auth data from Firebase's getRedirectResult
343+
344+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** Containing user's profile
345+
334346
## logout
335347

336348
Logs user out of Firebase and empties firebase state from

0 commit comments

Comments
 (0)