1 Answer
- Newest
- Most votes
- Most comments
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
answered a year ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago