()
| 59 | } |
| 60 | |
| 61 | function useAuthContext() { |
| 62 | const ctx = useContext(AuthContext) |
| 63 | if (!ctx) throw new Error('useAuthContext must be used within AuthProvider') |
| 64 | return ctx |
| 65 | } |
| 66 | |
| 67 | export { AuthProvider, useAuthContext } |
no outgoing calls
no test coverage detected