Skip to content

Commit

Permalink
Lagoon linting in deployment silenced
Browse files Browse the repository at this point in the history
It doesnt like console log or unused deps...
  • Loading branch information
spaceo committed Oct 22, 2024
1 parent e7a280f commit 6eed5e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/auth/token/refresh/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export async function GET(request: NextRequest, response: NextResponse) {
return NextResponse.redirect(frontpage, { headers: response.headers })
}
const redirect = request.nextUrl.searchParams.get("redirect")
console.log("Redirecting to:", redirect)
// We need the redirect URL to be present in the query string.
if (!redirect) {
return NextResponse.redirect(frontpage, { headers: response.headers })
Expand All @@ -35,7 +34,6 @@ export async function GET(request: NextRequest, response: NextResponse) {
const newTokens = await (client.refresh(tokens.refresh_token) as Promise<TTokenSet>)
setTokensOnSession(session, newTokens)
await session.save()
console.log("Tokens refreshed successfully:", newTokens)
} catch (error) {
// TODO: maybe distinguish between ZodError and other errors?
// TODO: Should we redirect to an end-of-session page?
Expand Down
2 changes: 1 addition & 1 deletion components/global/header/ProfileButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"

import { useRouter } from "next/navigation"
import React, { MouseEvent, useState } from "react"
import React, { MouseEvent } from "react"

import { Button } from "@/components/shared/button/Button"
import Icon from "@/components/shared/icon/Icon"
Expand Down

0 comments on commit 6eed5e0

Please sign in to comment.