Skip to content

Commit 57f4cb7

Browse files
committed
Return from onAuthStateChanged
1 parent d23da5b commit 57f4cb7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/app/utils.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ export function logout() {
4040
return auth().signOut()
4141
}
4242

43-
export const onAuthStateChanged = limitCalls(function onAuthStateChanged(
44-
callback
45-
) {
46-
auth().onAuthStateChanged(callback)
47-
},
48-
3)
43+
export function onAuthStateChanged(callback) {
44+
return auth().onAuthStateChanged(callback)
45+
}
4946

5047
export async function signup({
5148
email,

0 commit comments

Comments
 (0)