MCPcopy Create free account
hub / github.com/acoyfellow/UserDO / isRequestSecure

Function isRequestSecure

src/authMiddleware.ts:5–5  ·  view source on GitHub ↗
(c: Context)

Source from the content-addressed store, hash-verified

3import type { UserDO } from './UserDO.js'
4
5const isRequestSecure = (c: Context) => new URL(c.req.url).protocol === 'https:'
6
7export type GetUserDO = (c: Context, email: string) => UserDO
8

Callers 1

createAuthMiddlewareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected