Skip to content

Commit

Permalink
fix: use correct RTDB import in AuthProvider
Browse files Browse the repository at this point in the history
Co-Authored-By: WeWrite <getwewrite@gmail.com>
  • Loading branch information
devin-ai-integration[bot] and getwewrite committed Dec 25, 2024
1 parent 0ea0dc4 commit 769be44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/providers/AuthProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import { useEffect, useState, createContext, useContext } from "react";
import { auth, onAuthStateChanged } from "../firebase/auth";
import { getDatabase } from "../firebase/database";
import { db } from "../firebase/rtdb";

export const AuthContext = createContext();
const db = getDatabase();

export const useAuth = () => {
const context = useContext(AuthContext);
Expand Down

0 comments on commit 769be44

Please sign in to comment.