@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
19 lines (18 loc) • 700 B
TypeScript
import { oauthProviderClient } from '@better-auth/oauth-provider/client';
import { multiSessionClient } from 'better-auth/client/plugins';
import { AuthClient } from '../../lib/auth-client';
export type OAuthProviderAuthClient = AuthClient<{
plugins: [ReturnType<typeof oauthProviderClient>];
}>;
/**
* Auth client typed with both plugins the OAuth account chooser needs.
*
* `oauthProviderClient()` forwards the signed authorization query and
* `multiSessionClient()` lists and switches device sessions.
*/
export type OAuthProviderMultiSessionAuthClient = AuthClient<{
plugins: [
ReturnType<typeof oauthProviderClient>,
ReturnType<typeof multiSessionClient>
];
}>;