()
| 107 | } |
| 108 | |
| 109 | export function useAuth() { |
| 110 | const context = useContext(AuthContext); |
| 111 | if (context === undefined) { |
| 112 | throw new Error("useAuth must be used within an AuthProvider"); |
| 113 | } |
| 114 | return context; |
| 115 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…