AllowMembersOptionsinterface
import { AllowMembersOptions } from '@mortar-kit/auth'
interface AllowMembersOptions<Field extends string = never>Options for allowMembers.
Properties
content: ContentSourceWhere to look members up: usually the app's
createContent(...).collection: stringThe collection's name, e.g.
'members'.emailField?: stringThe field holding each member's address. Default
email.nameField?: stringA field holding their display name, used over the one the sign-in method gives. Default
name.fields?: readonly Field[]More of the member's fields to put on the user, as stored (e.g.
['role']), forcanWriteand the rest of the app to read.