Redux
  • Read Me
  • 소개
    • 동기
    • Core Concepts
    • 3가지 원칙
    • 기존 기술들
    • Learning Resources
    • 생태계
    • 예시
  • 기초
    • 액션
    • 리듀서
    • 스토어
    • 데이터 흐름
    • React와 함께 사용하기
    • 예시: Todo List
  • 심화
    • 비동기 액션
    • 비동기 흐름
    • 미들웨어
    • React Router와 함께 사용하기
    • 예시: Reddit API
    • Next Steps
  • 레시피
    • Configuring Your Store
    • Redux로 마이그레이션
    • 객체 확산 연산자 사용하기
    • 보일러플레이트 줄이기
    • Server Rendering
    • Writing Tests
    • Computing Derived Data
    • Implementing Undo History
    • Isolating Subapps
    • 리듀서 구조화하기
      • 사전에 요구되는 개념들
      • 기본 리듀서 구조
      • 리듀서 로직 분리하기
      • 리듀서 예제 리팩토링하기
      • combineReducers 사용하기
      • combineReducers 더 알아보기
      • 상태 정규화하기
      • 정규화된 데이터 업데이트하기
      • 리듀서 로직 재사용하기
      • 불변 업데이트 패턴
      • 상태 초기화하기
    • Using Immutable.JS with Redux
  • FAQ
    • General
    • Reducers
    • Organizing State
    • Store Setup
    • Actions
    • Immutable Data
    • Code Structure
    • Performance
    • Design Decisions
    • React Redux
    • Miscellaneous
  • 문제해결
  • 용어사전
  • API 레퍼런스
    • createStore
    • Store
    • combineReducers
    • applyMiddleware
    • bindActionCreators
    • compose
  • 변경 기록
  • 후원자
  • 피드백
Powered by GitBook
On this page
  • Table of Contents
  • Miscellaneous
  • Are there any larger, “real” Redux projects?
  • How can I implement authentication in Redux?
  1. FAQ

Miscellaneous

PreviousReact ReduxNext문제해결

Last updated 6 years ago

Table of Contents

Miscellaneous

Are there any larger, “real” Redux projects?

Yes, lots of them! To name just a few:

And many, many more! The Redux Addons Catalog has that points to a variety of actual applications, large and small.

Further information

Documentation

Discussions

How can I implement authentication in Redux?

Authentication is essential to any real application. When going about authentication you must keep in mind that nothing changes with how you should organize your application and you should implement authentication in the same way you would any other feature. It is relatively straightforward:

  1. Create action constants for LOGIN_SUCCESS, LOGIN_FAILURE, etc.

  2. Create action creators that take in credentials, a flag that signifies whether authentication succeeded, a token, or an error message as the payload.

  3. Create an async action creator with Redux Thunk middleware or any middleware you see fit to fire a network request to an API that returns a token if the credentials are valid. Then save the token in the local storage or show a response to the user if it failed. You can perform these side effects from the action creators you wrote in the previous step.

  4. Create a reducer that returns the next state for each possible authentication case (LOGIN_SUCCESS, LOGIN_FAILURE, etc).

Further information

Articles

Examples

Libraries

Introduction: Examples
Reddit: Large open source react/redux projects?
HN: Is there any huge web application built using Redux?
Authentication with JWT by Auth0
Tips to Handle Authentication in Redux
react-redux-jwt-auth-example
Redux Addons Catalog: Use Cases - Authentication
Twitter's mobile site
Wordpress's new admin page
Firefox's new debugger
Mozilla's experimental browser testbed
The HyperTerm terminal application
a list of Redux-based applications and examples
Are there any larger, “real” Redux projects?
How can I implement authentication in Redux?