We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b6e2d commit c6aae8fCopy full SHA for c6aae8f
1 file changed
src/server/model/auth.ts
@@ -144,14 +144,8 @@ export const authConfig: Omit<AuthConfig, 'raw'> = {
144
*/
145
export async function getAuthSession(
146
req: IncomingMessage,
147
- _secure = false
+ secure = false
148
): Promise<Session | null> {
149
- const cookieStr = req.headers.cookie ?? '';
150
-
151
- // Not cool
152
- const secure = cookieStr.includes('__Secure-authjs.session-token')
153
- ? true
154
- : false;
155
const protocol = secure ? 'https:' : 'http:';
156
const url = createActionURL(
157
'session',
0 commit comments