Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Choose your framework/language

Gen1 DocsLegacy

Page updated Mar 26, 2026

電話番号

デフォルトでは、Amplify Authはemailをユーザーサインインのデフォルト方法としてスカフォールドされていますが、ユーザーが電話番号を使用してサインインできるように変更または拡張することができます。

amplify/auth/resource.ts
import { defineAuth } from "@aws-amplify/backend"
export const auth = defineAuth({
loginWith: {
phone: true,
},
})

これにより、サインアップに必要で変更できないphone_number属性が設定されます。

次のステップ