import { AuthFlowType, B2BProducts, StytchB2B } from "@stytch/react/b2b";
const organizationConfig = {
authFlowType: AuthFlowType.Organization,
organizationSlug: 'example-org', // Optional, only needed if not rendering on an Organization-specific URL
products: [B2BProducts.oauth],
oauthOptions: {
loginRedirectURL: 'https://example.com/authenticate',
signupRedirectURL: 'https://example.com/signup',
providers: [
{ type: 'google', one_tap: true, cancel_on_tap_outside: false },
{ type: 'microsoft' },
],
providerParams: {
login_hint: 'example_hint@stytch.com',
},
},
sessionOptions: {
sessionDurationMinutes: 60,
},
};
// Render the StytchB2B component
<StytchB2B config={organizationConfig} />