()
| 24 | |
| 25 | // Hook to get the current auth provider |
| 26 | export function useAuthProvider(): FrontendAuthProvider { |
| 27 | const globalContext = useContext(GlobalAuthContext); |
| 28 | if (globalContext.provider) { |
| 29 | return globalContext.provider; |
| 30 | } |
| 31 | |
| 32 | return FALLBACK_AUTH_PROVIDER; |
| 33 | } |
| 34 | |
| 35 | // Hook to get auth context regardless of provider |
| 36 | export function useAuth() { |
no outgoing calls
no test coverage detected