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

Non-iOS Purple checkout flows (server-side) #11

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

danieldaquino
Copy link
Contributor

@danieldaquino danieldaquino commented Oct 5, 2024

Summary

This PR adds the following:

  • New OTP authentication support for LN checkout

Checklist

Test report

Test 1

damus-api: 8bdbd179536da01c3a74b1c8cb5cd7427437c672
Node: v18.20.4, running on NixOS
Steps: Run unit tests
Setup: Move .env file away to avoid env-dependent behavior
Results:

  • PASS
  • Partial PASS (Passes 5 out of 7 tries)
    • Details: There seems to be some pre-existing flakiness on the unit tests. However, I ran the test 7 times and it passed 5 times. Besides, there is not much regression risk with the current changes. Failures are most likely not being caused by this PR.

Test 2

See test report in damus-io/website#28

Other notes

Add OTP authentication endpoints for the lightning checkout process, to
allow users without Damus iOS to buy Purple

Changelog-Added: Add OTP authentication support to the Purple LN checkout process
Signed-off-by: Daniel D’Aquino <[email protected]>
@danieldaquino danieldaquino force-pushed the notedeck#330 branch 2 times, most recently from 14abd87 to 03e1e90 Compare October 8, 2024 18:48
@danieldaquino danieldaquino changed the title [WIP] Non-iOS Purple checkout flows Non-iOS Purple checkout flows (server-side) Oct 8, 2024
@danieldaquino danieldaquino marked this pull request as ready for review October 8, 2024 19:56
@danieldaquino danieldaquino assigned jb55 and unassigned jb55 Oct 8, 2024
@danieldaquino danieldaquino requested a review from jb55 October 8, 2024 19:57
@danieldaquino
Copy link
Contributor Author

Actually, @jb55, give me a moment, I will double-check this PR on node.js 18 and our CI/nix configuration. Node v22.x is not LTS, so we might want to stay in v18.x

@danieldaquino
Copy link
Contributor Author

Actually, @jb55, give me a moment, I will double-check this PR on node.js 18 and our CI/nix configuration. Node v22.x is not LTS, so we might want to stay in v18.x

Restored Node 18 compatibility. Re-tested and updated all test reports.

@jb55
Copy link
Contributor

jb55 commented Oct 12, 2024 via email

@danieldaquino danieldaquino merged commit 9a32bea into damus-io:master Oct 15, 2024
1 check failed
@danieldaquino
Copy link
Contributor Author

Thanks! Merged!

@jb55
Copy link
Contributor

jb55 commented Nov 9, 2024

@danieldaquino I tried to do a purchase with an account with no profile, and I did not receive a DM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants