GithubHelp home page GithubHelp logo

blind-client's Introduction

blind-client

사용해보려고 한 것

  • firebase@v9
  • firebase/auth - 이메일 링크 로그인
  • react-router@v6 세션 처리
  • react-router@v6 outlet 기반 layout

이메일 링크 로그인 구현된 방식

1. /signin 페이지에서 로그인
2. firebase를 통해 이메일 링크 전송
3. /signin/complete 페이지로 이동
---
  1. 유저가 이메일을 확인하고 링크를 클릭
  2. firebase 자체처리 이후 /signin/redirect로 이동
  3. 해당 페이지에서 검증을 거친 후 로그인 성공 처리
---
4. 로그인 성공시 AuthContext에 User가 갱신됨
5. User가 갱신되면 /signin/complete 페이지는 / 페이지로 redirect

react router를 통한 세션 처리

AuthContext: user, signin, signout을 관리
RequireAuth: user가 없으면 (로그인이 안되어있으면) /signin 페이지로 redirect

logo

Online community icons created by Freepik - Flaticon

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.