Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ route.ts
File
route.ts
apps/sim/app/api/chat/[identifier]/otp/route.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ db } from
'@sim/db'
2
import
{ chat } from
'@sim/db/schema'
3
import
{ createLogger } from
'@sim/logger'
4
import
{ and, eq, isNull } from
'drizzle-orm'
Callers
nothing calls this directly
Calls
15
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
generateRequestId
Function · 0.90
getClientIp
Function · 0.90
createErrorResponse
Function · 0.90
parseRequest
Function · 0.90
getValidationErrorMessage
Function · 0.90
isEmailAllowed
Function · 0.90
generateOTP
Function · 0.90
storeOTP
Function · 0.90
renderOTPEmail
Function · 0.90
sendEmail
Function · 0.90
Tested by
no test coverage detected