inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

JWT auth error invalid token

미해결

타입스크립트로 배우는 Next.js 16+ 완전 정복 : 기초부터 최신 아키텍처까지

이메일 입력 후 contitnue 버튼을 누르면 JWT auth error invalid token 오류가 나네요. 몇시간째 보고 있는데 원인을 찾지 못하겠네요. 전체 소스 코드를 같이 첨부하고 싶은데 할 수 가 없네요. 일단은 EmailInfoForm 소스만 올려 봅니다. backend는 .env 빼고 소스를 특별하게 수정한 부분이 없습니다. 브라우저 application 데이터도 클리어 해보고 했지만 소용이 없네요. 확인 부탁드립니다. "use client"; import {useState} from "react"; import {MailIcon} from "../ui/Icons"; import {validateEmail} from "@/lib/validation"; import clientApi from "@/lib/api/clientApi"; import {useRouter, useSearchParams} from "next/navigation"; export default function EmailInfoForm() { const router = useRouter(); const searchParams = useSearchParams(); const accessToken = searchParams.get("access_token") ?? ""; const [email, setEmail] = useState(""); const [error, setError] = useState(""); const [isSubmitting, setIsSubmitting] = useState(false); const handleFormSubmit = async (e: React.SubmitEvent<HTMLFormElement>) => { e.preventDefault(); if (isSubmitting) return; setError(""); //이메일 검증 const validationError = validateEmail(email); if (validationError) { setError(validationError); return; } //확인 대화 상자 const confirmed = window.confirm( "한 번 입력한 이메일은 변경할 수 없습니다. 이 이메일로 저장할까요?", ); if (!confirmed) return; setIsSubmitting(true); try { const res = await clientApi("/auth/update-email", { method: "PATCH", body: JSON.stringify({email: email.trim()}), headers: { Authorization: `Bearer ${accessToken}`, }, }); if (!res.ok) { const errorData = await res.json().catch(() => null); throw new Error( (errorData && errorData.error) || "이메일 업데이트에 실패하였습니다.", ); } router.replace("/"); router.refresh(); } catch (e) { setError( e instanceof Error ? e.message : "이메일 업데이트에 실패하였습니다.", ); } }; return ( <> <form className="flex flex-col gap-5" onSubmit={handleFormSubmit}> <div className="flex flex-col gap-2"> <label htmlFor="email" className="text-sm font-medium text-foreground" > Email Address </label> <div className="relative"> <MailIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" /> <input id="email" type="email" placeholder="Enter your email" className="h-11 w-full rounded-lg border-none bg-secondary pl-10 pr-4 text-sm text-foreground placeholder-muted-foreground outline-none focus:ring-2 focus:ring-primary" value={email} onChange={(e) => setEmail(e.target.value)} /> </div> </div> {error && ( <p className="text-sm font-medium text-destructive">{error}</p> )} <div className="grid grid-cols-2 gap-3"> <button type="button" className="h-11 rounded-lg bg-secondary text-sm font-medium text-secondary-foreground transition-colors hover:opacity-90" > Cancel </button> <button type="submit" className="h-11 rounded-lg bg-primary text-sm font-medium text-primary-foreground transition-colors hover:opacity-90" > Continue </button> </div> </form> </> ); }

  • javascript
  • react
  • typescript
  • next.js
  • jwt
태리바이트 댓글 2 좋아요 0 조회수 99

테스트 코드 작성 시 DTO 새로 작성하는 이유가 궁금합니다.

미해결

스프링부트로 직접 만들면서 배우는 대규모 시스템 설계 - 게시판

테스트 작성 시, 소스파일에(src) 있는 DTO를 그대로 사용하지 않고, 복사해와서 새로 정의를 하시던데 그 이유가 뭔지 궁금합니다!

  • java
  • mysql
  • spring-boot
  • kafka
  • redis
nick 댓글 1 좋아요 0 조회수 95

광고 캠페인 종류와 키워드 플래너 관련 질문

해결됨

350개의 개인 앱을 만들어 월급의 7배 수익을 달성한 방법

안녕하세요. 강의의 내용을 참고하여 Google Ads 로 실습중입니다. 프좀님이 광고를 만들때 캠페인을 어떤걸로 하셨나요? 앱 캠페인인지 아니면 일반 캠페인인지 궁금합니다. 왜 그렇냐면 키워드 플래너로 찾은 키워드들로 캠페인을 만들려고 하니 앱 캠페인이 아닌 일반 캠페인으로 만들어지더라고요. 만약 앱 캠페인이라면 키워드 플래너로 찾은 키워드들을 어떤식으로 활용했는지 알고 싶습니다.

  • android
  • Google-Ads
  • admob
  • 수익화
블루아이 댓글 2 좋아요 0 조회수 130

툴 사용

해결됨

아날로그 회로설계 실무 : Analog IP 설계와 성능 개선하기

안녕하세요 삼코치님 제가 학연생을 해서 버츄소를 사용가능한데 tsmc 28나노 공정을 사용할 수 있는데 강의를 들으며 버츄소랑 HSPICE로 진행을 해도 괜찮을까요? 무리가 없을지 궁금합니다

  • comparator
  • circuit
  • ring-oscillator
  • amp
최민영 댓글 1 좋아요 0 조회수 100

현재 미니케이스 자동완성 검색창 설계1 강의를 보고있습니다.

해결됨

미국 빅테크 프론트엔드 시스템 디자인 실전: 단순 구현자로 남지 않기 위한 프론트엔드 개발자를 위해

헌데 아직까지는 잘모르겠어요 할인된 가격6만원주고 샀지만 아직까지는 실제 현업에서 발생하는 것들에대해서 실질적으로 도움이될만한 내용을 다루고있는것같지는 않은것같아요. 이론적인부분들만 얕게 나열해주시는데 6만원도 아직까지는 아깝다는 생각이듭니다. 그래도 이왕 들은거 끝까지듣고 판단하려고합니다.

  • frontend
  • 시스템-디자인
  • 인공지능(ai)
댓글 2 좋아요 -1 조회수 124

leaveGroupChatRoom 문의

해결됨

웹소켓/STOMP 채팅서비스(spring, vue, redis)

if (chatRoom.getIsGroupChat().equals("N")) { throw new IllegalArgumentException("단체 채팅방이 아닙니다."); } leaveGroupChatRoom 메소드에서 이 부분이 맞나요? 개인채팅일 경우 여기에 걸려 예외가 납니다.

  • spring-boot
  • websocket
  • stomp-websocket
  • pubsub
  • vue-3
cbpark68 댓글 3 좋아요 0 조회수 93

코드 중간에 . 붙은건 뭐라고 봐야할까요?

해결됨

(2027 대비!) 일주일만에 합격하는 정보처리기사 실기

4:38 scanner.nextlnt() 이건 뭔가요 중간에 . 이 붙었는데 이 개념이 어색합니다.

  • python
  • java
  • c
  • 정보처리기사
  • 정보처리산업기사
wkruqja 댓글 2 좋아요 0 조회수 91

설명중 단어 의미 해석 문제.

해결됨

(2027 대비!) 일주일만에 합격하는 정보처리기사 실기

3:00 파라미터 라는 말이 나오는데 비전공자라서 무슨말인지 모르겠어요.. 이런것들 자막 켜면 부가 설명에 예시가 달려서 나오면 안될까요ㅠㅠ 개행도 오늘 처음들었고. 첫 강의부터 약간 옆에 검색창 띄워놓고 수강해야할것 같은 예감이 듭니다.

  • python
  • java
  • c
  • 정보처리기사
  • 정보처리산업기사
wkruqja 댓글 1 좋아요 0 조회수 67

변경감지(더티체킹) 이후 플러시할 경우의 쿼리

미해결

자바 ORM 표준 JPA 프로그래밍 - 기본편

학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. [질문 내용] 강의보고 책으로 복습하다가 궁금한 점이 있어서 질문드립니다. jpa 책 105쪽에 변경감지에 관한 내용입니다. 엔티티가 영속성 컨텍스트에 보관될 때 최초의 상태(persist())를 스냅샷으로 저장해두고 플러시 시점의 엔티티를 비교해서 변경사항에 대한 수정 쿼리를 쓰기지연 sql 저장소에 보낸다고 되어있습니다. 이 메커니즘은 이해가 되는데 persist(); setName(); flush(); 여기서 persist()를 하게 되면 실제 db에 바로 반영이 되는 것이 아니라 영속 컨텍스트에 저장(1차캐시), 이후 insert 쿼리를 쓰기 지연 저장소에 저장하게 됩니다. 이후 엔티티의 이름을 변경하고 플러시할 경우 스냅샷과 플러시 시점의 엔티티 상태를 비교해서 변경 부분에 관한 수정 쿼리를 쓰기지연저장소에 보낼 때 쓰기지연저장소에는 insert와 update 두 쿼리가 있고 플러시할 때 insert, update 두가지 모두 실행되는 걸까요? 아니라면 이유가 궁금합니다! 찾아보니까 insert만 나간다고 하는데 왜 그런지 도무지 이해가 안됩니다.

  • java
  • jpa
gsjh2001 댓글 1 좋아요 0 조회수 93

2.8 GWS 연결하기 수강중 문의사항입니다.

해결됨

[단테랩스] Hermes × Codex 로 세우는 나만의 AI 가상 오피스 (8주 마스터 과정)

호스팅어 vps 환경입니다. External Dirs에 gws가 설치된 경로 ~ /.agents/skills 를 넣었는데 자꾸 스킬을 못가져와서 원인을 찾아보니 gws가 루트에 설치되었는데, 루트 권한이 없어서 못가져 오는거 같더라구요... gpt에게 문의한결과 루트폴더에 권한을 주는건 비추천이라고, 스킬폴더를 권한있는 폴더로 복사해서 그 경로를 입력하라고 하는데... 우선 복사해서 복사한 경로에 복사를 하고 External Dirs에 접근가능한 경로를 입력하니 스킬이 나오는것을 확인 했습니다.. 설치를 헤르메스에서 다시 해야할까요? 아니면 gpt가 알려준대로 해야할까요... 어떤방법을 사용하는게 좋을지 알려주세요..

  • 인공지능(ai)
  • ai-agent
mj 댓글 1 좋아요 0 조회수 110

녹화영상 시청

미해결

AI 일러스트 & 캐릭터 5주 워크숍 2기 (개인 결제창)

안녕하세요. 개인적인 사정으로 라이브수업때 참여를 못하고 있습니다. 녹화된 영상을 제공해준다고 본것같은데 어디서 볼수있을까요? 찾지못해서 글을 남깁니다.

  • 캐릭터-디자인
  • 인공지능(ai)
  • chatgpt
  • midjourney
mynamelye 댓글 1 좋아요 0 조회수 58

강의 소스코드 질문드려봅니다

미해결

클로드 코드 완벽 마스터: AI 개발 워크플로우 기초부터 실전까지

Starter Kit 만들기 소스코드 부분에 있어 강의 섹션 13~14에서 변경된 코드가 하나도 적용안되 있어보여 문의드려봅니다..! 가능하면 완벽히 마무리된 상태도 확인해 보고 싶은데 다운받아 확인해 보니 오류도 있고 소개나 문서 부분 클릭시에도 제대로 나오지않아 섹션 13에서 다룬 내용이 적용되지 않은 상태로 보여서요 영상외에 제가 봐보며 코드와 디자인을 좀 자세히 보고싶은데 혹시 업로드 안된상태라면 따로 업로드나 공유가 어려운부분일지도 질문드려봅니다

  • react
  • 인공지능(ai)
  • claude
모또쭌 댓글 1 좋아요 0 조회수 86

커서 IDE를 디폴트로 설정 하는 방법

미해결

클로드 코드 완벽 마스터: AI 개발 워크플로우 기초부터 실전까지

안녕하세요, 영상 잘 보고 있습니다. Cursor 를 실행 시키면 IDE 화면이 아닌 첨부한 것과 같이 Cursor Home(?) 화면이 디폴트로 보여 집니다. 저 화면에서 좌측 상단 IDE 버튼 혹은 메뉴 File --> Open IDE 를 선택해야 IDE 화면을 실행 시킬 수 있는데요... 이걸 그냥 Cursor 실행 시키면 IDE 화면이 바로 디폴트로 보여지게 세팅은 안되는것일까요?

  • cursor
YunHee Choi 댓글 2 좋아요 0 조회수 213

cursor 버전을 뭐을 써야하나요?

미해결

클로드 코드 완벽 마스터: AI 개발 워크플로우 기초부터 실전까지

지금 강의하는 Cursor 버전이랑 요즘 버전이랑 완전 달라서 딴세상 이야기 같은데, 예전 버전을 받으려면 몇버전을 받아서 해야하나요?

  • react
  • 인공지능(ai)
  • claude
이흠냥이 댓글 3 좋아요 0 조회수 115

Unit 1.12 Hermes 강의에 세팅 설정이 많이 바뀌어서 고생 했습니다.

해결됨

[단테랩스] Hermes × Codex 로 세우는 나만의 AI 가상 오피스 (8주 마스터 과정)

버전이 달라져서 그런가요? 강의상 진행 흐름과 너무 달라서 초보자로써 고생 많이 했습니다 업데이트 되면 다른 분들이 더 고생이 덜할거 같습니다.

  • 인공지능(ai)
  • ai-agent
bao-meditech 댓글 2 좋아요 0 조회수 89

테마맵 만들기 위해.

미해결

(AI 퀀트) 코드 한 줄 안 쓰고 주식 자동 분석 시스템 만들기 feat. Claude CLI

그날 장마감 후 주식테마맵을 만드려고 합니다. 조언좀 주시면 감사하겠습니다. 1. 현재 키움증권 open api를 통해 10% 이상 상승종목을 수집합니다. 네이버 뉴스 검색 api를 통해 상승종목을 검색해 상승이유를 찾습니다. 테마맵을 만듭니다. 이렇게 실행했더니 문제가 생겼습니다. 아래를 참고해 상승종목이 테마별로 잘 묶이는 방법을 조언해주시면 감사하겠습니다. 1. 종목과 테마맵 불일치.(EX 화장품 종목인데 반도체 테마에 묶인 경우) 2. 반도체 테마가 반도체 테마로 묶이지 않고 개별상승 종목으로 분류 되는 경우.

  • python
  • flask
  • next.js
  • 인공지능(ai)
홍성우 댓글 2 좋아요 0 조회수 128

43강 강의내용 질문입니다.

해결됨

한 입 크기로 잘라먹는 바이브코딩 - 기초부터 실전 배포까지 (클로드 & 코덱스)

3분 44초에 보면 브라우저 화면을 띠우시는데 이 화면을 다시 띠우려면 어떻게 해야하는지요? 폴더 추가, 삭제, 수정 기능에 대한 커밋이 잘 안되어 커밋을 다시 했더니 폴더 삭제, 추가 가 2개씩 생겼습니다. 어떤걸 삭제해야 하며, 삭제하는 방법은 무엇인지?

  • 웹앱
  • 네트워크
  • 보안-교육
  • claude
  • 바이브코딩
남승원 댓글 1 좋아요 0 조회수 78

The Impact of Community Gardens on Nutrition and Public Health Outcomes

미해결

The Impact of Community Gardens on Nutrition and Public Health Outcomes Introduction Community gardens have emerged as an increasingly NURS FPX 4015 important public health intervention in both urban and rural settings. These shared spaces, where individuals collectively cultivate fruits, vegetables, herbs, and sometimes ornamental plants, serve purposes that extend far beyond food production. They represent a practical strategy for improving nutrition, enhancing food security, strengthening community cohesion, and supporting overall public health outcomes. In many regions, especially low-income or underserved neighborhoods, access to fresh and affordable produce is limited. These areas are often referred to as food deserts, where residents rely heavily on processed and calorie-dense foods due to lack of availability or affordability of healthier alternatives. This dietary pattern contributes to rising rates of obesity, diabetes, cardiovascular disease, and other chronic conditions. Community gardens offer a localized, sustainable response to these challenges by increasing access to fresh foods and encouraging healthier dietary behaviors. Beyond nutrition, community gardens promote physical activity, mental well-being, environmental awareness, and social engagement. They also provide educational opportunities for children and adults to learn about agriculture, nutrition, and sustainable food systems. As a result, community gardens are increasingly recognized as a multifaceted public health intervention with measurable benefits for individuals and communities. This article explores the role of community gardens in improving nutrition, examines their impact on public health outcomes, and discusses the mechanisms through which they contribute to healthier communities. Understanding Community Gardens Community gardens are defined as shared plots of land where individuals or groups grow food and plants collectively or in assigned sections. These gardens may be managed by neighborhood associations, nonprofit organizations, schools, religious institutions, or local governments. Community gardens typically include: Individual or shared planting plots Common gardening areas Composting systems Water access infrastructure Educational spaces Some gardens are purely for food production, while others integrate recreational, educational, or environmental conservation purposes. The structure and organization of community gardens nurs fpx 4015 assessment 1 vary widely depending on available land, community involvement, and local support systems. Nutritional Benefits of Community Gardens One of the most significant contributions of community gardens is their impact on dietary habits and nutrition. Increased Access to Fresh Produce Community gardens provide direct access to fresh fruits and vegetables, particularly in areas where grocery stores are scarce or expensive. This increased availability can improve dietary quality among participants and their families. Fresh produce grown in community gardens is often: More affordable than store-bought alternatives Free from long transportation chains Harvested at peak ripeness, improving nutritional value Improved Dietary Diversity Participation in gardening activities encourages individuals to consume a wider variety of fruits and vegetables. People are more likely to eat foods they have grown themselves, including vegetables they may not typically purchase. Increased dietary diversity contributes to: Better micronutrient intake Improved immune function Reduced risk of chronic diseases Increased Fruit and Vegetable Consumption Studies have shown that individuals involved in community gardening tend to consume higher amounts of fruits and vegetables compared to non-gardeners. This dietary improvement is associated with reduced risks of obesity, hypertension, and cardiovascular disease. Gardening also reinforces positive eating behaviors through hands-on experience and increased awareness of food sources. Impact on Chronic Disease Prevention Community gardens play a role in reducing risk factors associated with chronic diseases. Obesity Prevention Access to fresh produce and increased physical activity nurs fpx 4015 assessment 2 contribute to healthier body weight. Gardening activities such as digging, planting, and weeding provide moderate physical exercise that helps burn calories and improve metabolism. Diabetes Management and Prevention Improved diet quality, particularly increased consumption of fiber-rich vegetables, supports blood sugar regulation. Community gardens encourage healthier eating patterns that may reduce the risk of type 2 diabetes. Cardiovascular Health Dietary changes associated with gardening, such as reduced intake of processed foods and increased consumption of fruits and vegetables, support heart health by lowering blood pressure and cholesterol levels. Conclusion Community gardens represent a powerful and multifaceted nurs fpx 4015 assessment 3 public health intervention that improves nutrition, supports physical and mental health, strengthens social connections, and enhances food security. By increasing access to fresh fruits and vegetables and encouraging healthier lifestyles, community gardens contribute to the prevention of chronic diseases such as obesity, diabetes, and cardiovascular conditions. Beyond nutrition, these gardens foster community engagement, provide educational opportunities, and promote environmental sustainability. They also play an important role in addressing health inequities by improving access to healthy foods in underserved communities. While challenges such as funding limitations and land availability exist, the benefits of community gardens make them a valuable component of comprehensive public health strategies. Healthcare professionals, community organizations, and policymakers all have important roles in supporting and expanding these initiatives. As public health continues to emphasize prevention and community-based interventions, community gardens will remain an effective and sustainable approach to improving population health outcomes and building healthier, more resilient communities.

yofod52416 댓글 0 좋아요 0 조회수 46

15강 git 설정 오류

미해결

클로드 코드 완벽 마스터: AI 개발 워크플로우 기초부터 실전까지

15강 git 설정 윈도우 동일 방식으로 햇을 때 오류가 뜨는데 어떻게 할 수 있을까요. 오류 내용은 아래와같습니다. ~ : '~' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다. 이름이 정확한지 확 인하고 경로가 포함된 경우 경로가 올바른지 검증한 다음 다시 시도하십시오.

  • react
  • 인공지능(ai)
  • claude
너드코더 댓글 2 좋아요 0 조회수 111

인기 태그

인프런 TOP Writers

주간 인기글