We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65efcf1 commit b263b7fCopy full SHA for b263b7f
apps/server/src/auth/http.ts
@@ -28,17 +28,6 @@ export const respondToAuthError = (error: AuthError) =>
28
);
29
});
30
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
-
42
const REMOTE_AUTH_ALLOW_METHODS = "GET, POST, OPTIONS";
43
const REMOTE_AUTH_ALLOW_HEADERS = "authorization, content-type";
44
0 commit comments