← @mortar-kit/auth

AllowMembersOptionsinterface

import { AllowMembersOptions } from '@mortar-kit/auth'

interface AllowMembersOptions<Field extends string = never>

Options for allowMembers.

Properties

content: ContentSource

Where to look members up: usually the app's createContent(...).

collection: string

The collection's name, e.g. 'members'.

emailField?: string

The field holding each member's address. Default email.

nameField?: string

A 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']), for canWrite and the rest of the app to read.