Skip to content

Commit

Permalink
added attributes schema for email, phone number, and username in data…
Browse files Browse the repository at this point in the history
…base schema
  • Loading branch information
kushalshit27 committed Jan 27, 2025
1 parent 3e4f7ce commit 7bedc68
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions src/tools/auth0/handlers/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,78 @@ export const schema = {
),
},
},
attributes: {
type: 'object',
properties: {
email: {
type: 'object',
properties: {
identifier: {
type: 'object',
properties: {
active: { type: 'boolean' },
},
},
profile_required: { type: 'boolean' },
verification_method: { type: 'string', enum: ['otp', 'link'] },
signup: {
type: 'object',
properties: {
status: { type: 'string', enum: ['required', 'optional', 'inactive'] },
verification: {
type: 'object',
properties: {
active: { type: 'boolean' },
},
},
},
},
},
},
phone_number: {
type: 'object',
properties: {
identifier: {
type: 'object',
properties: {
active: { type: 'boolean' },
},
},
profile_required: { type: 'boolean' },
signup: {
type: 'object',
properties: {
status: { type: 'string', enum: ['required', 'optional', 'inactive'] },
verification: {
type: 'object',
properties: {
active: { type: 'boolean' },
},
},
},
},
},
},
username: {
type: 'object',
properties: {
identifier: {
type: 'object',
properties: {
active: { type: 'boolean' },
},
},
profile_required: { type: 'boolean' },
signup: {
type: 'object',
properties: {
status: { type: 'string', enum: ['required', 'optional', 'inactive'] },
},
},
},
},
},
},
},
},
},
Expand Down

0 comments on commit 7bedc68

Please sign in to comment.