Skip to content

Commit

Permalink
fix docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Aug 27, 2024
1 parent 6bc4fa0 commit 0df127e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/platform/src/HttpApiBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ export const securitySetCookie = (
* @since 1.0.0
* @category middleware
* @example
* import { ApiBuilder, ApiSecurity } from "@effect/platform"
* import { HttpApiBuilder, HttpApiSecurity } from "@effect/platform"
* import { Schema } from "@effect/schema"
* import { Context, Effect, Redacted } from "effect"
*
Expand All @@ -661,8 +661,8 @@ export const securitySetCookie = (
*
* const securityMiddleware = Effect.gen(function*() {
* const accounts = yield* Accounts
* return ApiBuilder.middlewareSecurity(
* ApiSecurity.bearer,
* return HttpApiBuilder.middlewareSecurity(
* HttpApiSecurity.bearer,
* CurrentUser,
* (token) => accounts.findUserByAccessToken(Redacted.value(token))
* )
Expand Down

0 comments on commit 0df127e

Please sign in to comment.