Skip to content

Commit

Permalink
feat: back to boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
incredible-phoenix246 committed Jan 27, 2025
1 parent 0ac72db commit 344a533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { NextRequest, NextResponse } from 'next/server'

import {
Expand Down Expand Up @@ -26,7 +27,7 @@ export default async function middleware(request: NextRequest) {
const authToken = cookieStore.get('authToken')
const domain = inDevEnvironment ? '.localhost' : `.${ROOT_DOMAIN}`

cookieStore.set('authToken', session?.access_token!, {
cookieStore.set('authToken', session?.access_token as string, {
httpOnly: true,
secure: !inDevEnvironment,
sameSite: false,
Expand Down

0 comments on commit 344a533

Please sign in to comment.