Skip to content

Commit

Permalink
feat: allow partial emailTemplates option (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Aug 15, 2021
1 parent 17ef4e1 commit 1cf53c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/bright-snakes-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@accounts/server': patch
---

`emailTemplates` option can now be set partially
2 changes: 1 addition & 1 deletion packages/server/src/types/accounts-server-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface AccountsServerOptions<CustomUser extends User = User> {
accessToken?: jwt.SignOptions;
refreshToken?: jwt.SignOptions;
};
emailTemplates?: EmailTemplatesType;
emailTemplates?: Partial<EmailTemplatesType>;
userObjectSanitizer?: (user: CustomUser) => CustomUser;
impersonationAuthorize?: (user: User, impersonateToUser: User) => Promise<any>;
/**
Expand Down

0 comments on commit 1cf53c3

Please sign in to comment.