(org: Org)
| 122 | } |
| 123 | |
| 124 | export const isCredentialsLoginEnabled = (org: Org): boolean => { |
| 125 | if (env.AUTH_CREDENTIALS_LOGIN_ENABLED !== undefined) { |
| 126 | return env.AUTH_CREDENTIALS_LOGIN_ENABLED === 'true'; |
| 127 | } |
| 128 | |
| 129 | return org.isCredentialsLoginEnabled; |
| 130 | } |
| 131 | |
| 132 | export const isEmailCodeLoginEnabled = (org: Org): boolean => { |
| 133 | if (env.AUTH_EMAIL_CODE_LOGIN_ENABLED !== undefined) { |
no outgoing calls
no test coverage detected