heyitsmass / BayView

The next generation reservation tracking and notification system
https://bayview.dev
MIT License
1 stars 2 forks source link

Supertokens auth patch #81

Closed heyitsmass closed 11 months ago

heyitsmass commented 12 months ago

Description

Implementation and conversion of the supertokens backend auth along with general clean up and refactoring associated with it.

A major change is the additional of Terms Of Use, Priacy Policy, Data Disclaimer, Data Request Form, and The Skeleton for the Cookie Policy was created. This is a placed in a static footer across every route in the homepage.

- Login Screen (CSS To be updated)

image

- Sign Up (CSS To be updated)

image

- Forgot Password

image

- User Management Dashboard Login

image

- User Dashboard

image

- User Data

image

- /home route protection

Image from Gyazo

- Sign in

Image from Gyazo

- Sign out

Image from Gyazo

- Sign Up

Image from Gyazo

- Sign up/in with Discord

Image from Gyazo

- Sign up/in with Google

Image from Gyazo

- Sign up/in with Facebook

Image from Gyazo

- Sign up/in with Github

Image from Gyazo

- Additional Notes

Not visible in the repo are the two backend servers setup for the supertokens auth; These are run on a self-hosted nginx reverse proxied server with proper SSL certification and validation. ssl

- The Supertokens auth backend;

Visit: https://baypi.bayview.dev/api/hello to validate it's working - API requests outside of 'hello' require an API token for valid request.

You should see Hello in the browser.

Any request performed on the website via supertokens travels through this backend server for authentication

- The Cockroach DB three node SQL cluster:

db

Supertokens does not support logging into and signing up for the website with MongoDB as a backend database integration, Thus we needed a reliable SQL cluster to handle all of the secure user data. Thus a Three node CockroachDB cluster was implemented.

Visit http://baypi.bayview.dev/dashboard to validate it's working

dashboard

Credentials have been provided in the environment variables if you are a contributor.

Other general reactors were made to improve the structure of the project:

Types of changes

Checklist:

vercel[bot] commented 12 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bay-view ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 8:32am