UNPKG

payload-authjs

Version:
54 lines (53 loc) 1.42 kB
/** * Accounts field for a user * * @see https://authjs.dev/concepts/database-models */ export const accountsField = { name: "accounts", type: "array", fields: [ { type: "row", fields: [ { name: "provider", type: "text", required: true }, { name: "providerAccountId", type: "text", required: true, index: true }, { name: "type", type: "text", required: true, typescriptSchema: [ ()=>({ type: "string", enum: [ "oidc", "oauth", "email", "webauthn" ] }) ] } ] } ], admin: { initCollapsed: true, components: { RowLabel: "payload-authjs/components#AccountRowLabel" } }, access: { create: ()=>false, update: ()=>false } }; //# sourceMappingURL=accounts.js.map