(authMethod: AuthMethod)
| 465 | } |
| 466 | |
| 467 | function isUsingAuthentication(authMethod: AuthMethod): boolean { |
| 468 | const providerId = getProviderId(authMethod); |
| 469 | return ( |
| 470 | getAuthenticatedUser()?.providerData.some( |
| 471 | (p) => p.providerId === providerId, |
| 472 | ) ?? false |
| 473 | ); |
| 474 | } |
| 475 | |
| 476 | export function getPasswordSchema(): ZodString { |
| 477 | return isDevEnvironment() ? z.string().min(6) : PasswordSchema; |
no test coverage detected