Update fallback with linking methods

cgen-6eeb99414cd14ac899f76dd203b01fec
This commit is contained in:
Builder.io 2025-09-30 08:29:14 +00:00
parent 8d7f606225
commit dd70e2130d

View file

@ -58,6 +58,7 @@ const missingProviderFallback: AuthContextType = {
session: null,
loading: true,
profileComplete: false,
linkedProviders: [],
signIn: async () => {
throw new Error(
"AuthProvider is not mounted. Please ensure your app is wrapped with <AuthProvider>.",
@ -73,6 +74,16 @@ const missingProviderFallback: AuthContextType = {
"AuthProvider is not mounted. Please ensure your app is wrapped with <AuthProvider>.",
);
},
linkProvider: async () => {
throw new Error(
"AuthProvider is not mounted. Please ensure your app is wrapped with <AuthProvider>.",
);
},
unlinkProvider: async () => {
throw new Error(
"AuthProvider is not mounted. Please ensure your app is wrapped with <AuthProvider>.",
);
},
signOut: async () => {
throw new Error(
"AuthProvider is not mounted. Please ensure your app is wrapped with <AuthProvider>.",