Giter Site home page Giter Site logo

Comments (9)

leedoopal avatar leedoopal commented on September 17, 2024 1

@KoEonYack
호고동 그렇네요!! 고마워요!

from dev-event-client.

KoEonYack avatar KoEonYack commented on September 17, 2024

@leedoopal 와~~~~ 반가워요~!

그렇네요~ 회원 상세 정보 조회 API를 만들어둘께요~!!

페이지 이동할때마다 API를 호출하지 않는것이 맞죠~~?!

from dev-event-client.

leedoopal avatar leedoopal commented on September 17, 2024

@KoEonYack
당연하죠! 로그인 후 한번만 호출할거예요~!

from dev-event-client.

KoEonYack avatar KoEonYack commented on September 17, 2024

@leedoopal 긩장히 효율적이군요!

from dev-event-client.

KoEonYack avatar KoEonYack commented on September 17, 2024

@leedoopal

혹시.. JWT 토큰을 보내면 안에 있는 ID를 갖고 회원 정보 조회하는 API는 어떤가요~!?

[GET] /admin/v1/users/profile
HEADER: Authentication {JWT}

from dev-event-client.

leedoopal avatar leedoopal commented on September 17, 2024

@KoEonYack
좋아요!!! 그런데 jwt 토큰 안에 id가 지금 없는 것 같은데.. 혹시 앞으로 생기나요?

from dev-event-client.

KoEonYack avatar KoEonYack commented on September 17, 2024

@leedoopal

스크린샷 2022-04-07 오후 10 28 29

sub가 id에용!

from dev-event-client.

KoEonYack avatar KoEonYack commented on September 17, 2024

@leedoopal

API를 만들었어요~

스크린샷 2022-04-11 오후 11 18 31

JWT 토큰을 Header에 담으면 내용을 보고 회원정보를 응답해요~


스크린샷 2022-04-11 오후 11 19 33
쇼셜 가입이 생기면서 회원 타입이 생겼어요~ ADMIN, NAVER, GOOGLE, KAKAO, GITHUB가 있어요!

관리자 페이지에 로그인할수 있는 회원 타입은 ADMIN이에요! 회원 전체 조회할때 회원 타입도 응답해요~


스크린샷 2022-04-11 오후 11 20 43

따라서 ROLE_ADMIN 유저가 탈퇴 강제 탈퇴 API 호출할때 회원탈퇴 값도 보내야합니다~

from dev-event-client.

leedoopal avatar leedoopal commented on September 17, 2024

@KoEonYack
와 선생님 고마워요~~~ 이슈 종료할게요!

from dev-event-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.