-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (27 loc) · 776 Bytes
/
types.ts
File metadata and controls
33 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { EmailAdapter } from "adminforth";
import {type PluginsCommonOptions } from "adminforth";
export interface PluginOptions extends PluginsCommonOptions {
/**
* Field name in auth resource which contains email
*/
emailField: string;
/**
* From which email to send invite emails
* e.g. no-reply@example.com
*/
sendFrom: string;
/**
* Field name in auth resource which contains password
*/
passwordField: string;
/**
* Email adapter to use for sending emails
*/
adapter: EmailAdapter;
/**
* Field name in auth resource which stores email confirmation status
* If provided, email will be marked as confirmed when user sets password via invite
* e.g. 'email_confirmed'
*/
emailConfirmedField?: string;
}