Product owner Users wish to use their existing authentication
Login with GitHub OAuth with NextAuth library.
sequenceDiagram
Guest->>User: Login?
User-->>Guest: Yes!
Guest-)User: Authenticated
These are the subtasks required:
- install library
- look into eddiejaoude/eddiejaoude#99
- setup OAuth app ...
We must also include the login hook:
// create the new user a Stripe account
const user = getUser();
const stripe = createNewStripeUser(user);
Use feature flags to hide login button until fully tested
Caution
Do not run in production until after migration
gitGraph:
commit "Ashish"
branch newbranch
checkout newbranch
commit id:"1111"
commit tag:"test"
checkout main
commit type: HIGHLIGHT
commit
merge newbranch
commit
branch b2
commit
flowchart TD
Start["Start"] --> Enter_Credentials["Enter Username and Password"]
Enter_Credentials --> Validate_Credentials["Validate Credentials"]
Validate_Credentials -->|Valid| Success["Login Successful"]
Validate_Credentials -->|Invalid| Failure["Login Failed"]
Success --> End["End"]
Failure --> Enter_Credentials