MCPcopy Create free account
hub / github.com/ShipSecAI/studio / useAuthProvider

Function useAuthProvider

frontend/src/auth/useAuth.ts:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25// Hook to get the current auth provider
26export 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
36export function useAuth() {

Callers 10

ProtectedRouteFunction · 0.90
AppLayoutFunction · 0.85
OrganizationSwitcherFunction · 0.85
AuthModalFunction · 0.85
UserButtonFunction · 0.85
UserButtonTextFunction · 0.85
useAuthStoreIntegrationFunction · 0.85
useAuthProviderSyncFunction · 0.85
useAuthFunction · 0.85
PostHogClerkBridgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected