Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

function useSignInContext(): {
  state: SignInState;
  dispatch: Dispatch<SignInAction>;
};
A context for the SignIn component.

Returns

{
  state: SignInState;
  dispatch: Dispatch<SignInAction>;
}
The current state of the SignIn component.
NameType
stateSignInState
dispatchDispatch<SignInAction>

Example

function EmailComponent() {
  const { state } = useSignInContext();
  return <div>Submitted email: {state.email}</div>;
}

function App() {
  return (
    <CDPReactProvider config={config} theme={themeOverrides}>
      <SignIn>
        <SignInTitle />
        <SignInDescription />
        <EmailComponent />
        <SignInForm />
      </SignIn>
    </CDPReactProvider>
  );