Commit Graph

593 Commits

Author SHA1 Message Date
Stefan Kostic
902135838c Cleanup 2022-02-24 23:36:08 +01:00
Stefan Kostic
f615564728 Return bad auth error response properly 2022-02-24 23:16:21 +01:00
Stefan Kostic
d4032de94c Check if token is valid in util method 2022-02-24 22:54:50 +01:00
Stefan Kostic
98b9fc1fe7 Add login by refresh token test 2022-02-24 22:54:35 +01:00
Stefan Kostic
4c379fc856 Implement refresh token case in auth service 2022-02-24 21:18:41 +01:00
Stefan Kostic
5301d592bd Extend util method to check if token is refresh 2022-02-24 21:18:13 +01:00
Stefan Kostic
371124f77e Add jwt util to parse user id from token 2022-02-24 21:05:12 +01:00
Stefan Kostic
4d0300a330 Set different expiry for access and refresh tokens 2022-02-24 20:46:05 +01:00
Stefan Kostic
de823e478a Fix migration according to PR comments 2022-02-23 18:41:58 +01:00
kiwiidb
407d6b88c7 Merge pull request #3 from kiwiidb/feature/bolt12
Feature/bolt12
2022-02-23 15:15:01 +01:00
kiwiidb
9048058675 Merge branch 'main' of github.com:kiwiidb/lndhub.go into feature/bolt12 2022-02-23 15:14:04 +01:00
kiwiidb
5f052add84 add const 2022-02-23 15:13:48 +01:00
kiwiidb
4a447c1805 Merge pull request #2 from kiwiidb/feature/bolt12
Feature/bolt12
2022-02-23 15:03:41 +01:00
kiwiidb
8a91d3e391 Merge branch 'main' into feature/bolt12 2022-02-23 15:03:01 +01:00
kiwiidb
18a20c1170 Merge pull request #1 from kiwiidb/feature/bolt12
Feature/bolt12
2022-02-23 12:22:02 +01:00
Stefan Kostic
b25c1cb1c4 Use sql for init migration 2022-02-22 15:52:21 +01:00
Michael Bumann
072694cb2e Merge pull request #112 from getAlby/chore/update-readme
update README
2022-02-19 00:37:43 +02:00
kiwiidb
18ddf6cace update README 2022-02-18 18:02:10 +01:00
kiwiidb
2a1d4d8e08 Merge pull request #110 from getAlby/payment-and-info-tests
Payment and info tests
2022-02-18 16:40:01 +01:00
kiwiidb
38c1ea0cc9 Merge pull request #111 from getAlby/fix-typo
Fix typo
2022-02-18 16:30:05 +01:00
Michael Bumann
4a3c93bb17 Fix typo 2022-02-18 16:42:42 +02:00
kiwiidb
0a95a1e9b6 Merge pull request #107 from getAlby/fix/in-transit
Fix/in-transit
0.2.0
2022-02-18 14:49:46 +01:00
Stefan Kostic
0671e38697 Add get info tests 2022-02-18 14:30:57 +01:00
Stefan Kostic
b70578eaf9 Add check payment tests 2022-02-18 14:30:51 +01:00
Stefan Kostic
f5b58e6659 Add comment to explain async mock wrapper 2022-02-18 14:07:15 +01:00
Stefan Kostic
596dbc6eca Use sentry capture for handle payment errors 2022-02-18 12:46:35 +01:00
Stefan Kostic
a071b3bd1a Fix error message bun struct tag 2022-02-18 12:46:06 +01:00
Stefan Kostic
6a32645b59 Add missing test 2022-02-18 12:39:24 +01:00
Stefan Kostic
fd80bcea5d Fix error logging todos 2022-02-17 20:36:04 +01:00
Stefan Kostic
130760bbb1 Add error message field to invoice 2022-02-17 20:29:45 +01:00
Stefan Kostic
09aee50ec0 Cleanup 2022-02-17 20:17:29 +01:00
Stefan Kostic
5d0bcfdfa5 Add failing internal payment test 2022-02-17 20:15:32 +01:00
Stefan Kostic
e67d759797 Tear down test and suite properly in tests to fix failures 2022-02-17 20:00:29 +01:00
Stefan Kostic
720a40061e Add and use lnd mock with failing send payment sync 2022-02-17 19:47:08 +01:00
Stefan Kostic
63a3ea09b3 Add simple failure test 2022-02-17 18:32:30 +01:00
Stefan Kostic
17e42f42ea Add tear down test to create tests 2022-02-17 16:05:09 +01:00
Stefan Kostic
2e5f411cf1 Use context background on all needed places 2022-02-17 15:17:05 +01:00
Stefan Kostic
fea16623ab Implement handle failed payment method 2022-02-17 15:10:42 +01:00
Stefan Kostic
1d9e24f21c Implement handle successful payment method 2022-02-17 14:27:49 +01:00
kiwiidb
74da8f8088 new pr scope: don't bother with callbacks 2022-02-17 11:31:39 +01:00
kiwiidb
5c2d88d2f7 add desired integration test behaviour 2022-02-16 12:33:57 +01:00
kiwiidb
7ff25113e5 outline behaviour in comments 2022-02-16 12:29:11 +01:00
kiwiidb
26694c821f remove transactions, add empty func that will handle failed payments 2022-02-16 11:23:30 +01:00
kiwiidb
06f4291444 Merge pull request #105 from getAlby/chore/remove-unnecesary-deps
Chore/remove-unnecesary-deps
2022-02-16 09:21:55 +01:00
kiwiidb
61966e3d1c address PR comments 2022-02-16 09:12:37 +01:00
kiwiidb
0987912a92 Merge branch 'chore/remove-unnecesary-deps' into feature/bolt12 2022-02-15 18:16:22 +01:00
kiwiidb
d88ebf11d8 use the correct expiresAt timestamp 2022-02-15 18:16:10 +01:00
kiwiidb
7d3eefd26b should work now 2022-02-15 18:10:14 +01:00
kiwiidb
b63885ca4f add transform bolt12 function again 2022-02-15 17:54:16 +01:00
kiwiidb
a1b4e895c4 fix merge conflicts 2022-02-15 17:48:07 +01:00