I would like to allow my users to choose between login with email and password or with their phone number but doing this:
import { defineAuth } from "@aws-amplify/backend"
/**
* Define and configure your auth resource
* @see https://docs.amplify.aws/gen2/build-a-backend/auth
*/
export const auth = defineAuth({
loginWith: {
email: true,
phone: true,
},
})
require users to provider both email and phone number.
Please how can I achieve this (Allow user to choose between email-password and phone number for authentication) ?
I would like to allow my users to choose between login with email and password or with their phone number but doing this:
require users to provider both email and phone number.
Please how can I achieve this (Allow user to choose between email-password and phone number for authentication) ?