Skip to content

Commit b263b7f

Browse files
committed
Remove unused authSessionRouteLayer export (dead code)
1 parent 65efcf1 commit b263b7f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

apps/server/src/auth/http.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,6 @@ export const respondToAuthError = (error: AuthError) =>
2828
);
2929
});
3030

31-
export const authSessionRouteLayer = HttpRouter.add(
32-
"GET",
33-
"/api/auth/session",
34-
Effect.gen(function* () {
35-
const request = yield* HttpServerRequest.HttpServerRequest;
36-
const serverAuth = yield* ServerAuth;
37-
const session = yield* serverAuth.getSessionState(request);
38-
return HttpServerResponse.jsonUnsafe(session, { status: 200 });
39-
}),
40-
);
41-
4231
const REMOTE_AUTH_ALLOW_METHODS = "GET, POST, OPTIONS";
4332
const REMOTE_AUTH_ALLOW_HEADERS = "authorization, content-type";
4433

0 commit comments

Comments
 (0)