1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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
Contenido relevante
- preguntada hace 9 meses
- preguntada hace 5 meses
- preguntada hace 11 días
- OFICIAL DE AWSActualizada hace 3 años
