Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-with-antonio/nightcode
/ require-credits-balance.ts
File
require-credits-balance.ts
packages/server/src/middleware/require-credits-balance.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createMiddleware } from
"hono/factory"
;
2
import
type
{ AuthenticatedEnv } from
"./require-auth"
;
3
import
{ getAvailableCreditsBalance } from
"../lib/polar"
;
4
Callers
nothing calls this directly
Calls
1
getAvailableCreditsBalance
Function · 0.90
Tested by
no test coverage detected