MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / isCredentialsLoginEnabled

Function isCredentialsLoginEnabled

packages/shared/src/utils.ts:124–130  ·  view source on GitHub ↗
(org: Org)

Source from the content-addressed store, hash-verified

122}
123
124export 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
132export const isEmailCodeLoginEnabled = (org: Org): boolean => {
133 if (env.AUTH_EMAIL_CODE_LOGIN_ENABLED !== undefined) {

Callers 2

getProvidersFunction · 0.90
page.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected