File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ REACT_APP_PROJECT_ID=YOUR_PROJECT_ID
55REACT_APP_STORAGE_BUCKET = YOUR_STORAGE_BUCKET
66REACT_APP_MESSAGING_SENDER_ID = YOUR_MESSAGING_SENDER_ID
77REACT_APP_APP_ID = YOUR_APP_ID
8+
9+ REACT_APP_EMAIL_CONFIRMATION_REDIRECT = http://localhost:3000
Original file line number Diff line number Diff line change @@ -20,6 +20,15 @@ class Firebase {
2020
2121 signOut = ( ) => this . auth . signOut ( ) ;
2222
23+ verifyEmail = ( ) =>
24+ this . auth . currentUser . sendEmailVerification ( {
25+ url : process . env . REACT_APP_EMAIL_CONFIRMATION_REDIRECT
26+ } ) ;
27+
28+ resetPassword = email => this . auth . sendPasswordResetEmail ( email ) ;
29+
30+ updatePassword = password => this . auth . currentUser . updatePassword ( password ) ;
31+
2332 addUser = ( uid , userData ) =>
2433 this . db
2534 . collection ( 'users' )
You can’t perform that action at this time.
0 commit comments