Skip to content

Commit f154e9f

Browse files
committed
fix snippets, add email: true
1 parent 66a9d5f commit f154e9f

File tree

1 file changed

+6
-0
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers

1 file changed

+6
-0
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ import { defineAuth, secret } from '@aws-amplify/backend';
123123

124124
export const auth = defineAuth({
125125
loginWith: {
126+
email: true,
126127
externalProviders: {
127128
google: {
128129
clientId: secret('GOOGLE_CLIENT_ID'),
@@ -160,6 +161,7 @@ import { defineAuth, secret } from '@aws-amplify/backend';
160161

161162
export const auth = defineAuth({
162163
loginWith: {
164+
email: true,
163165
externalProviders: {
164166
google: {
165167
clientId: secret('GOOGLE_CLIENT_ID'),
@@ -265,6 +267,7 @@ import { defineAuth } from '@aws-amplify/backend';
265267

266268
export const auth = defineAuth({
267269
loginWith: {
270+
email: true,
268271
externalProviders: {
269272
loginWithAmazon: {
270273
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
@@ -290,6 +293,7 @@ import { defineAuth } from '@aws-amplify/backend';
290293

291294
export const auth = defineAuth({
292295
loginWith: {
296+
email: true,
293297
externalProviders: {
294298
loginWithAmazon: {
295299
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
@@ -323,6 +327,7 @@ import { defineAuth } from '@aws-amplify/backend';
323327

324328
export const auth = defineAuth({
325329
loginWith: {
330+
email: true,
326331
externalAuthProviders: {
327332
loginWithAmazon: {
328333
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
@@ -351,6 +356,7 @@ import { defineAuth } from '@aws-amplify/backend';
351356

352357
export const auth = defineAuth({
353358
loginWith: {
359+
email: true,
354360
externalAuthProviders: {
355361
loginWithAmazon: {
356362
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),

0 commit comments

Comments
 (0)