Skip to content

Commit

Permalink
fix: lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
renanleonel committed Mar 2, 2024
1 parent 3b84740 commit ac27994
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/react/Pre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const CodeBlock = ({ children, ...props }: { children: any }) => {
{children}
</pre>
<button
aria-label="Copy to clipboard"
className="hidden md:flex absolute top-2 right-2 items-center gap-2 p-1"
onClick={copyToClipboard}
>
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,4 @@ export const config = {

Here, we are retrieving if the user is authenticated for every route in our application and verifying the current path. If the user has a current session and tried to go back to the login page, they will be redirected back to the /protected page. If the user tries to access any route that isn’t public without a session, they will be redirected to the login page. You can use any matcher suitable for your application.

Now, you have a complete authentication flow using middleware in Next.js 14 with NextAuth v5! If you face any problems, you can check the full code [here](https://github.com/renanleonel/next-auth-v5-middleware) to help you out.
Now, you have a complete authentication flow using middleware in Next.js 14 with NextAuth v5! If you face any problems, you can check the [github repository](https://github.com/renanleonel/next-auth-v5-middleware) with the full code to help you out.
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Theme from "@/components/Theme.astro";
</main>
<footer class="flex justify-between max-w-2xl w-full py-4">
<p
class="md:text-balance text-xs md:text-sm leading-loose text-neutral-500"
class="md:text-balance text-xs md:text-sm leading-loose text-neutral-600 dark:text-neutral-300"
>
built by
<a href="https://www.linkedin.com/in/renanleonel/" class="underline"
Expand Down

0 comments on commit ac27994

Please sign in to comment.