@okta-dfuhriman/okta-auth-js
Version:
The Okta Auth SDK
17 lines (13 loc) • 429 B
JSX
import { Link, Box } from '@okta/odyssey-react';
import { useIdxTransaction } from '../contexts';
const IdpForm = () => {
const { transaction: { availableSteps } } = useIdxTransaction();
const idpMeta = availableSteps?.find(step => step.name === 'redirect-idp');
return (
<Box>
<Box>Type: {idpMeta.type}</Box>
<Link href={idpMeta.href}>Login With Google</Link>
</Box>
);
};
export default IdpForm;