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 11{
22 "name" : " purescript-firebase" ,
3- "version" : " 0.0.4 " ,
3+ "version" : " 0.0.5 " ,
44 "main" : " index.js" ,
55 "repository" : " https://github.com/codingedgar/purescript-firebase.git" ,
66 "author" : " codingedgar <codingedgar@gmail.com>" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ const {
1414 isSignInWithEmailLink,
1515} = require ( "firebase/auth" ) ;
1616
17+ export {
18+ getIdTokenResult as _getIdTokenResult ,
19+ } from "firebase/auth" ;
20+
1721export function createUserWithEmailAndPasswordImp ( email , password , auth ) {
1822 return function ( ) {
1923 return createUserWithEmailAndPassword ( auth , email , password ) ;
Original file line number Diff line number Diff line change @@ -183,3 +183,15 @@ signInWithEmailLink emailLink (Email email) =
183183 emailLink
184184 email
185185 >>> 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