(org: Org)
| 130 | } |
| 131 | |
| 132 | export const isEmailCodeLoginEnabled = (org: Org): boolean => { |
| 133 | if (env.AUTH_EMAIL_CODE_LOGIN_ENABLED !== undefined) { |
| 134 | return env.AUTH_EMAIL_CODE_LOGIN_ENABLED === 'true'; |
| 135 | } |
| 136 | |
| 137 | return org.isEmailCodeLoginEnabled; |
| 138 | } |
| 139 | |
| 140 | export const isMemberApprovalRequired = (org: Org): boolean => { |
| 141 | if (env.REQUIRE_APPROVAL_NEW_MEMBERS !== undefined) { |
no outgoing calls
no test coverage detected