Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MVP] Clerk.js as the authentication service #2

Open
mrlemoos opened this issue Mar 17, 2024 · 0 comments
Open

[MVP] Clerk.js as the authentication service #2

mrlemoos opened this issue Mar 17, 2024 · 0 comments
Assignees
Labels
feat Something that brings deliver of value
Milestone

Comments

@mrlemoos
Copy link
Contributor

User Story 👤

As a student enrolled to begin my course abroad shortly
I want to sign in to Louffee
So that I can find the perfect home during my studies.

Acceptance Criteria ✅

Given that the user is on Sign In page
When they wish to sign in to Louffee with their Google account
Then they shall be able to log in by authorising Louffee to have access to minimal info, i.e., email, phone.

Given that the user is on Sign In page
When they wish to sign in to Louffee with their Apple ID account
Then they shall be able to log in by authorising Louffee to have access to minimal info, i.e., email, phone.

Notes 📝

  • We will not allow the users to sign in with their email address and password since it is discouraged due to inherited leaking risks.
  • The user must provide a username because, soon, the user will be able to access other user's profile pages via a handle.

Technical Refinement 🎧

We've commenced this project with the Next Auth as the authentication handler and Google would be our authentication provider.

However, to facilitate the integration and configuration to add new vendors if necessary, the complexity of implementing Next Auth would vertically scale since Next Auth is not a service provider and, therefore, we'd have to create a schema and tables in the database to control and store the user's metadata.

To provide more security and avoid further potential issues with the implementation, we've picked Clerk due to its smooth integration and good User Experience associated with the security aspects of our users.

@mrlemoos mrlemoos added the feat Something that brings deliver of value label Mar 17, 2024
@mrlemoos mrlemoos added this to the MVP milestone Mar 17, 2024
@mrlemoos mrlemoos self-assigned this Mar 17, 2024
mrlemoos added a commit that referenced this issue Mar 18, 2024
This commit introduces the Clerk authentication service to the project.
It replaces the NEXTAUTH environment variables with the new Clerk
environment variables. The following commits will structure the
Clerk authentication service and the implementation in the `@louffee/auth`
internal package.

This commit is part of the issue #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Something that brings deliver of value
Projects
None yet
Development

No branches or pull requests

1 participant