1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
This has been solved. For those needing it:
import {
Authenticator,
Heading,
Text,
ThemeProvider,
Theme,
useTheme,
View,
useAuthenticator,
Button,
} from '@aws-amplify/ui-react'
then wrap your app in the auth provider
<Authenticator
hideSignUp={true}
formFields={formFields}
components={components}
>
<Layout>
<main>
<Component previousPathname={previousPathname} {...pageProps} />
</main>
</Layout>
</Authenticator>
and configure formField
const formFields = {
setupTOTP: {
QR: {
totpIssuer: `CompanyName - ${process.env.NEXT_PUBLIC_ENV}`,
totpUsername: email,
},
...
},
}
Thx Dan
