dev + it dev nextjs jose [Next.js@13] jwt 라이브러리, jsonwebtoken 대신 jose[Next.js@13] jsonwebtoken 대신 jose Next.js에서 jwt를 생성할 때 늘 쓰던 jsonwebtoken 모듈을 시도했다. 결과는 오류! 공식 문서에 따르면 Edge 런타임은 모든 Node.js API를 지원하진 않는다고 알려준다. error - Error: The edge runtime does not support Node.js 'buffer' module. jose 그래서 대체 모듈을 찾다가 jose 라는 모듈을 찾았다. 해당 모듈은 종속성없이 작동한다. 내부에 각 모듈들은 독립적이기에 트리쉐이킹도 가능하다고한다. 지원 목록을 보면 맨 아래에 당당하게 Vercel이 있다. 현재 jwt 생성과 복호화를 jose를 통해 모듈화시켜서 사용하고있다. import { JWTPaylo.. wono | discuss | tweet + it dev nextjs jose jsonwebtoken NEXTjs (jose)next.js에서 jsonwebtoken 에러미들웨어는 노드의 런타임 기능을 사용하고 있으나 Edge 런타임은 노드 항목을 지원하지 않는다.jsonwebtoken jwt.verify(token, ); jose await jwtVerify(token, new Text wono | discuss | tweet + it dev nextjs jwt refresh [Next.JS] 사용자 인증 및 401을 위한 middleware 설정[Next.JS] 사용자 인증 및 401을 위한 middleware 설정 wono | discuss | tweet + it dev nextjs jwt Next.js 14 App Router로 JWT 기반 세션 인증 구현하기이 튜토리얼에서는 Next.js 14의 App Router를 사용해 써드파티 라이브러리 없이 JWT 기반의 세션 인증을 구현하는 방법을 다룹니다. wono | discuss | tweet + it dev nextjs nextauth 드리프트의 myCodings드리프트의 myCodings.fly.dev! wono | discuss | tweet + it dev nextjs jwt refresh [나만의 명언집 프로젝트] NextJS(^14.1) 에서 적용한 accessToken 을 이용한 토큰 인증에서 refresh + access 방식으로 수정오늘의 명언 이 포스트의 목적 더보기 이번에 약 1달의 기간동안 나만의 명언집 프로젝트에 리액트의 메타 프레임워크인 NextJS 14.1 버전을 사용하였습니다. 이 프로젝트에 로그인 인증을 구현하기 위해서 간편한 인증 라이브러리인 next-auth( → 현재는 auth.js 로 새단장중)와 같은 도구를 사용 하지 않고, 전통적인 방식의 JWT 라이브러리를 활용해서 인증을 구현하였습니다. 이 포스트의 목적은 기존 프로젝트에 적용된 jwt 인증 방식(accessToken 기반)의 보안상 문제점을 인식하고, 이를 개선하기 위해 refreshToken 을 적용하는 리팩토링 과정에서 보이는 여러 가지 문제점들을 기록하고 개선하는 모든 과정을 정리하는 것 입니다. 따라서 내용의 흐름이 부자연스러울 수 있다는 점을 .. wono | discuss | tweet + it dev nextjs mobile jwt how to handle autherization for mobile apps in next.js 14I want to create a next.js 14 app and use its api routes to connect a RN mobile app. But the thing is I am new to next.js and don't have much experience or understanding of cookies but I have worke... wono | discuss | tweet + id dev nextjs nextauthjs mobile using_nextauth_with_a_react_native_app_iosandroid wono | discuss | tweet + it dev nextjs shadcnui dialog [bug]: Sidebar on mobile requires a DialogTitle · Issue #5746 · shadcn-ui/uiDescribe the bug When I open the sidebar on mobile I get this error: hook.js:608 `DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users. If you want to hide the `DialogTitle`, you can wrap it ... wono | discuss | tweet + it dev nextjs shadcnui modal One Practical Application of Next.JS Parallel and Intercepting Routes: Better UX with Modals.I have been using Next.js for all my projects for about a year now, and there is always something new... Tagged with nextjs, learning, frontend, react. wono | discuss | tweet + it dev naming type generic Generic type parameter naming convention for Java (with multiple chars)?In some interfaces I wrote I'd like to name generic type parameters with more than one character to make the code more readable. Something like.... Map<Key,Value> Instead of this... Map&l... wono | discuss | tweet + it dev naming type generic TypeScript Generics. Discussing naming conventionsWe can find the concept of generic types across many languages such as Java, C#. Naturally, they found their way into TypeScript. In this article, we discuss their purpose and provide various examples. We also discuss naming conventions for generics that we can stumble upon. Introducing TypeScript Generics One of the qualities that we strive […] wono | discuss | tweet + it dev nextjs modal Next.js 14 강좌 6편. 인터셉팅 라우팅(Intercepting Routes)과 병렬 인터셉팅 라우팅(Parallel Intercepting Routes) 살펴보기Next.js에서 라우팅 가로채기인 인터셉팅 라우팅과 병렬 인터셉팅 라우팅에 대해 살펴보기 wono | discuss | tweet + it dev nextjs modal [Next.js] parellel routes + intercepting routes로 모달 만들기next.js app router에서 추가된 Parallel Routes와 Intercepting Routes를 이용한 모달 만들기 wono | discuss | tweet + it dev nextjs api Next.js API Routes: The Ultimate GuideLearn how to build robust, secure, and efficient API endpoints in Next.js. This comprehensive guide will walk you through the critical best practices for creating robust, secure, and efficient API endpoints in Next.js. wono | discuss | tweet + it dev nextjs request headers Routing: Middleware | Next.jsLearn how to use Middleware to run code before a request is completed. wono | discuss | tweet + it dev nextjs headers Routing: Route Handlers | Next.jsCreate custom request handlers for a given route using the Web's Request and Response APIs. wono | discuss | tweet + it dev nextjs apiroute r is not a function when wrapping API route with a function · Issue #67833 · vercel/next.jsLink to the code that reproduces this issue https://github.com/Floriferous/next-api-bug To Reproduce Clone this repo: https://github.com/Floriferous/next-api-bug Run it with npm run dev Visit '/' with your browser Notice the error r is n... wono | discuss | tweet + it dev nextjs handler Next.js의 API Routes 코드 모듈화에 대해서API Routes를 사용하면 코드가 매우 지저분해진다. API Routes를 사용하면서 어떻게 하면 코드를 보기 좋은 형태로 남길 수 있을지 고민한 흔적. wono | discuss | tweet + it dev nextjs authjs Auth.js(NextAuth.js) 핵심 정리Auth.js(NextAuth.js)는 Next.js 프로젝트의 사용자 인증 및 세션 관리를 위한 라이브러리로 Google, GitHub 등의 다양한 인증 공급자를 지원하며, Next.js의 서버와 클라이언트 측 모두에서 인증 및 세션 관리를 손쉽게 처리할 수 있습니다. wono | discuss | tweetNext
+ it dev nextjs jose [Next.js@13] jwt 라이브러리, jsonwebtoken 대신 jose[Next.js@13] jsonwebtoken 대신 jose Next.js에서 jwt를 생성할 때 늘 쓰던 jsonwebtoken 모듈을 시도했다. 결과는 오류! 공식 문서에 따르면 Edge 런타임은 모든 Node.js API를 지원하진 않는다고 알려준다. error - Error: The edge runtime does not support Node.js 'buffer' module. jose 그래서 대체 모듈을 찾다가 jose 라는 모듈을 찾았다. 해당 모듈은 종속성없이 작동한다. 내부에 각 모듈들은 독립적이기에 트리쉐이킹도 가능하다고한다. 지원 목록을 보면 맨 아래에 당당하게 Vercel이 있다. 현재 jwt 생성과 복호화를 jose를 통해 모듈화시켜서 사용하고있다. import { JWTPaylo.. wono | discuss | tweet
+ it dev nextjs jose jsonwebtoken NEXTjs (jose)next.js에서 jsonwebtoken 에러미들웨어는 노드의 런타임 기능을 사용하고 있으나 Edge 런타임은 노드 항목을 지원하지 않는다.jsonwebtoken jwt.verify(token, ); jose await jwtVerify(token, new Text wono | discuss | tweet
+ it dev nextjs jwt refresh [Next.JS] 사용자 인증 및 401을 위한 middleware 설정[Next.JS] 사용자 인증 및 401을 위한 middleware 설정 wono | discuss | tweet
+ it dev nextjs jwt Next.js 14 App Router로 JWT 기반 세션 인증 구현하기이 튜토리얼에서는 Next.js 14의 App Router를 사용해 써드파티 라이브러리 없이 JWT 기반의 세션 인증을 구현하는 방법을 다룹니다. wono | discuss | tweet
+ it dev nextjs jwt refresh [나만의 명언집 프로젝트] NextJS(^14.1) 에서 적용한 accessToken 을 이용한 토큰 인증에서 refresh + access 방식으로 수정오늘의 명언 이 포스트의 목적 더보기 이번에 약 1달의 기간동안 나만의 명언집 프로젝트에 리액트의 메타 프레임워크인 NextJS 14.1 버전을 사용하였습니다. 이 프로젝트에 로그인 인증을 구현하기 위해서 간편한 인증 라이브러리인 next-auth( → 현재는 auth.js 로 새단장중)와 같은 도구를 사용 하지 않고, 전통적인 방식의 JWT 라이브러리를 활용해서 인증을 구현하였습니다. 이 포스트의 목적은 기존 프로젝트에 적용된 jwt 인증 방식(accessToken 기반)의 보안상 문제점을 인식하고, 이를 개선하기 위해 refreshToken 을 적용하는 리팩토링 과정에서 보이는 여러 가지 문제점들을 기록하고 개선하는 모든 과정을 정리하는 것 입니다. 따라서 내용의 흐름이 부자연스러울 수 있다는 점을 .. wono | discuss | tweet
+ it dev nextjs mobile jwt how to handle autherization for mobile apps in next.js 14I want to create a next.js 14 app and use its api routes to connect a RN mobile app. But the thing is I am new to next.js and don't have much experience or understanding of cookies but I have worke... wono | discuss | tweet
+ id dev nextjs nextauthjs mobile using_nextauth_with_a_react_native_app_iosandroid wono | discuss | tweet
+ it dev nextjs shadcnui dialog [bug]: Sidebar on mobile requires a DialogTitle · Issue #5746 · shadcn-ui/uiDescribe the bug When I open the sidebar on mobile I get this error: hook.js:608 `DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users. If you want to hide the `DialogTitle`, you can wrap it ... wono | discuss | tweet
+ it dev nextjs shadcnui modal One Practical Application of Next.JS Parallel and Intercepting Routes: Better UX with Modals.I have been using Next.js for all my projects for about a year now, and there is always something new... Tagged with nextjs, learning, frontend, react. wono | discuss | tweet
+ it dev naming type generic Generic type parameter naming convention for Java (with multiple chars)?In some interfaces I wrote I'd like to name generic type parameters with more than one character to make the code more readable. Something like.... Map<Key,Value> Instead of this... Map&l... wono | discuss | tweet
+ it dev naming type generic TypeScript Generics. Discussing naming conventionsWe can find the concept of generic types across many languages such as Java, C#. Naturally, they found their way into TypeScript. In this article, we discuss their purpose and provide various examples. We also discuss naming conventions for generics that we can stumble upon. Introducing TypeScript Generics One of the qualities that we strive […] wono | discuss | tweet
+ it dev nextjs modal Next.js 14 강좌 6편. 인터셉팅 라우팅(Intercepting Routes)과 병렬 인터셉팅 라우팅(Parallel Intercepting Routes) 살펴보기Next.js에서 라우팅 가로채기인 인터셉팅 라우팅과 병렬 인터셉팅 라우팅에 대해 살펴보기 wono | discuss | tweet
+ it dev nextjs modal [Next.js] parellel routes + intercepting routes로 모달 만들기next.js app router에서 추가된 Parallel Routes와 Intercepting Routes를 이용한 모달 만들기 wono | discuss | tweet
+ it dev nextjs api Next.js API Routes: The Ultimate GuideLearn how to build robust, secure, and efficient API endpoints in Next.js. This comprehensive guide will walk you through the critical best practices for creating robust, secure, and efficient API endpoints in Next.js. wono | discuss | tweet
+ it dev nextjs request headers Routing: Middleware | Next.jsLearn how to use Middleware to run code before a request is completed. wono | discuss | tweet
+ it dev nextjs headers Routing: Route Handlers | Next.jsCreate custom request handlers for a given route using the Web's Request and Response APIs. wono | discuss | tweet
+ it dev nextjs apiroute r is not a function when wrapping API route with a function · Issue #67833 · vercel/next.jsLink to the code that reproduces this issue https://github.com/Floriferous/next-api-bug To Reproduce Clone this repo: https://github.com/Floriferous/next-api-bug Run it with npm run dev Visit '/' with your browser Notice the error r is n... wono | discuss | tweet
+ it dev nextjs handler Next.js의 API Routes 코드 모듈화에 대해서API Routes를 사용하면 코드가 매우 지저분해진다. API Routes를 사용하면서 어떻게 하면 코드를 보기 좋은 형태로 남길 수 있을지 고민한 흔적. wono | discuss | tweet
+ it dev nextjs authjs Auth.js(NextAuth.js) 핵심 정리Auth.js(NextAuth.js)는 Next.js 프로젝트의 사용자 인증 및 세션 관리를 위한 라이브러리로 Google, GitHub 등의 다양한 인증 공급자를 지원하며, Next.js의 서버와 클라이언트 측 모두에서 인증 및 세션 관리를 손쉽게 처리할 수 있습니다. wono | discuss | tweet