Yug Jadvanitheyugjadvani.hashnode.dev·Nov 16, 2024Mastering Authentication in Next.js - A Step-by-Step Guide to GitHub Login with Auth.jsIntroduction Next.js has become a preferred framework for modern web applications due to its simplicity and flexibility. One key aspect of any application is user authentication, and integrating GitHub login into a Next.js project is a practical choi...Next.js
Cheryl Mcherylm.hashnode.dev·Sep 27, 2024Handling Refresh Token with Next.js, Auth.js (next-auth v5) Credentials Provider, and HTTPOnly CookieI worked on a Next.js app that connects to a NestJS backend for authentication using an access token and a refresh token stored as HttpOnly Cookie. The main challenge is that cookies are read-only in server components; they can only be used in server...73 readsnext-auth-v5
Aakash Goplaniblog.aakashgoplani.in·Jul 13, 2024Drawbacks of SvelteKitAuth You Should KnowThis is the final chapter of the series Comprehensive Guide to SvelteKitAuth: Secure Authentication for SvelteKit Apps. In the past 14 chapters, we have explored various use cases, how-to guides, and the advantages of using SvelteKitAuth as the authe...204 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth
Aakash Goplaniblog.aakashgoplani.in·Jul 9, 2024Steps to Build Custom Pages and Handle Events in SvelteKitAuthAuth.js automatically creates simple, unbranded authentication pages for handling Sign in, Sign out, Email Verification and displaying error messages. The options displayed on the sign-up page are automatically generated based on the providers specif...71 readsAuthentication in SvelteKit using SvelteKitAuthauth.js
Aakash Goplaniblog.aakashgoplani.in·Jul 8, 2024How to Exchange Data Between Client and Server Using SvelteKitAuthIn this article, we will explore how to exchange data between the client and server using SvelteKitAuth. We will delve into the importance of JWT and session callbacks, and how to synchronize and store sessions effectively. Updating and Syncing data ...457 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth
Aakash Goplaniblog.aakashgoplani.in·Jul 7, 2024How to Implement Refresh Token Rotation in SvelteKitAuthRefresh token rotation is the practice of updating an access_token on behalf of the user, without requiring interaction (eg.: re-sign in). access_token are usually issued for a limited time. After they expire, the service verifying them will ignore t...438 readsAuthentication in SvelteKit using SvelteKitAuthtoken-rotation
Aakash Goplaniblog.aakashgoplani.in·Jul 7, 2024How to Manage Sessions in SvelteKit with SvelteKitAuthWe will explore two approaches to managing sessions in SvelteKit: one on the server side and the other on the client side. Managing session on the Server side As soon as the authentication is successful, SvelteKitAuth populates user sessions within l...275 readsAuthentication in SvelteKit using SvelteKitAuthsession management
Aakash Goplaniblog.aakashgoplani.in·Jul 7, 2024User Sign Out: Application vs OAuth ProviderIn previous articles, we explored how to sign out users from both the client-side and server-side. In this article, we will delve into the differences between signing out a user from the Application layer versus the OAuth layer. When you trigger a si...27 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth
Aakash Goplaniblog.aakashgoplani.in·Jul 7, 2024Optimizing Server-Side Login and Logout ProcessesIn the previous article, we explored how to authenticate users on the Client side. In this section, we will delve into the server-side authentication process. There are two ways in which we can initiate the server-side authentication: Using Form Acti...133 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth
Aakash Goplaniblog.aakashgoplani.in·Jul 7, 2024Streamlining Client-Side Sign-In and Sign-Out ProcessesIn the previous articles, we covered the basics of SvelteKitAuth and learned how to configure OAuth applications using both built-in and custom OAuth providers. In this article, we will focus on enhancing the user's sign-in and sign-out experience. T...100 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth