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...DiscussNext.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...Discuss·62 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...Discuss·190 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...Discuss·64 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 ...Discuss·400 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...Discuss·364 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...Discuss·202 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...DiscussAuthentication 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...Discuss·107 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...Discuss·78 readsAuthentication in SvelteKit using SvelteKitAuthSvelteKitAuth