Coder Social home page Coder Social logo

w4-half-baked-why-i-autha's Introduction

Why I Autha

Demo

Link to Demo

Getting Started

Use the this template to get started.

Learning Objectives

  • Register new users on Supabase using the Javascript library
  • Authenticate existing users on Supabase using the Javascript library
  • Manage protected and unprotected pages by checking if a user is logged in
  • Use location object to redirect users

Description

For this deliverable you are wiring up Supabase email authentication. You have been given 2 pages -- a home page at / and another page at /other-page. The home page should only be accessible when the user is not logged in - otherwise it should redirect to /other-page. /other-page should only be accessible when the user is logged in, otherwise it should redirect home.

Acceptance Criteria

  • Users should be able to sign in to an existing account
  • Users should be able to add a new account
  • Authenticated users should be able to visit another page
  • Authenticated users should be redirected to other page if they visit the home page
  • Users should be able to logout from the other page and be redirected back to the home page
  • We must see a clear commit history showing your understanding of the authentication flow

Rubric

Task Points
** Deploy Requirements **
Main branch deployed to Netlify 0.5
Open PR from dev branch with Netlify deploy preview 0.5
** Code Requirements **
Clear commit history with multiple commits with working code 2
Users can sign in and are redirected to other-page 2
Users can register and are redirected to other-page 2
Users can logout from the other page 1
Authenticated users are redirected to the other page from the home page 1
Unauthenticated users are redirected back to the home page from the other page 1

w4-half-baked-why-i-autha's People

Contributors

indio-ferrel avatar

Watchers

 avatar

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.