()
| 133 | }; |
| 134 | |
| 135 | export const useAuthContext = () => { |
| 136 | const context = useContext(AuthContext); |
| 137 | |
| 138 | if (!context) { |
| 139 | throw new Error("useAuth should be used inside of <AuthProvider />"); |
| 140 | } |
| 141 | |
| 142 | return context; |
| 143 | }; |
no outgoing calls
no test coverage detected