File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " purescript-firebase" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"main" : " index.js" ,
5
5
"repository" : " https://github.com/codingedgar/purescript-firebase.git" ,
6
6
"author" : " codingedgar <codingedgar@gmail.com>" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ const {
14
14
isSignInWithEmailLink,
15
15
} = require ( "firebase/auth" ) ;
16
16
17
+ export {
18
+ getIdTokenResult as _getIdTokenResult ,
19
+ } from "firebase/auth" ;
20
+
17
21
export function createUserWithEmailAndPasswordImp ( email , password , auth ) {
18
22
return function ( ) {
19
23
return createUserWithEmailAndPassword ( auth , email , password ) ;
Original file line number Diff line number Diff line change @@ -183,3 +183,15 @@ signInWithEmailLink emailLink (Email email) =
183
183
emailLink
184
184
email
185
185
>>> toAffE
186
+
187
+ foreign import data IdTokenResult :: Type
188
+
189
+ foreign import _getIdTokenResult :: Fn2 User Boolean (Effect (Promise UserCredential ))
190
+
191
+ getIdTokenResult :: Boolean -> User -> Auth -> Aff UserCredential
192
+ getIdTokenResult forceRefresh user =
193
+ runFn2
194
+ _getIdTokenResult
195
+ user
196
+ forceRefresh
197
+ >>> toAffE
You can’t perform that action at this time.
0 commit comments