uoa-compsci399-s1-2024 / capstone-project-2024-s1-team-15

Team Bit by Bit - Team 15
https://www.aapc-nz.org
4 stars 0 forks source link

Add firebase auth #386

Open arnard76 opened 2 months ago

arnard76 commented 2 months ago

Task

Solution

Authentication in Firebase is similar to AWS Cognito but I noticed some differences so I chucked them below.

https://github.com/uoa-compsci399-s1-2024/capstone-project-2024-s1-team-15/assets/78939786/1b0a72f1-1e11-4382-82b7-4bde089b3d38

Firebase Authentication

Code changes

Backend

Frontend

Alternative solutions

AWS Cognito (but not university's)

this would mean we don't need to refactor the changes above 😀

however AWS seems to require a payment source so would have to discuss how that works. ideally, it shouldn't be a source that has any money otherwise our code might accidently spend it 😇

Auth0

free plan is a great alternative: https://auth0.com/pricing

no credit card either

looks like it supports username/password (+ email) like AWS cognito so less refactoring changes than firebase solution 🙂

any more ideas ?? 💡💡

arnard76 commented 2 months ago

Drafted in case clients want to keep the site live