signIn
Function: signIn()
signIn(
db,log,input):Promise<SignInResult>
Defined in: src/services/auth/authService.ts:143
Authenticates a user by email and password.
Parameters
db
Drizzle client for database access.
log
FastifyBaseLogger
Logger for error reporting (e.g. persist failures).
input
SignInInput (email, password; optional ip, userAgent).
Returns
Promise<SignInResult>
Promise resolving to SignInResult: either { user, access, refresh } with the user row and JWT strings, or { error: "invalid_credentials" } if the user is not found or the password does not match.