@agg-build/auth 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ import { A as AggAuthProviderProps, a as AggAuthFlowContextValue } from './types-D-OXBxXn.js';
2
+ export { b as AuthMethodAdapter, c as AuthMethodId, d as AuthMethodInputDefinition, e as AuthMethodInputValue, f as AuthMethodStartContext, g as AuthMethodStartResult } from './types-D-OXBxXn.js';
3
+ import { useAggAuthContext } from '@agg-build/hooks';
4
+ export { ConnectButton, ConnectButtonButtonProps, ConnectButtonClassNames, ConnectButtonProps } from './connect-button.js';
5
+ export { createEmailAuthMethod } from './email.js';
6
+ export { createAppleAuthMethod, createGoogleAuthMethod, createTwitterAuthMethod } from './oauth.js';
7
+ import '@agg-build/ui';
8
+ import 'react';
9
+
10
+ declare const AggAuthProvider: ({ autoHandleAuthCallback, children, methods, }: AggAuthProviderProps) => JSX.Element;
11
+ declare const useAggAuthFlow: () => AggAuthFlowContextValue;
12
+
13
+ type CallbackUser = ReturnType<typeof useAggAuthContext>["user"];
14
+ interface UseAggAuthCallbackOptions {
15
+ callbackUrl?: string | URL;
16
+ enabled?: boolean;
17
+ }
18
+ interface UseAggAuthCallbackResult {
19
+ error: Error | null;
20
+ isHandled: boolean;
21
+ isHandling: boolean;
22
+ user: CallbackUser | null;
23
+ }
24
+ declare const useAggAuthCallback: (options?: UseAggAuthCallbackOptions) => UseAggAuthCallbackResult;
25
+
26
+ export { AggAuthFlowContextValue, AggAuthProvider, AggAuthProviderProps, type UseAggAuthCallbackOptions, type UseAggAuthCallbackResult, useAggAuthCallback, useAggAuthFlow };