Commit Graph

16 Commits

Author SHA1 Message Date
Roman Useinov
e22c51f9f9 use DefaultConfig as base for JWT 2022-01-16 14:14:53 +00:00
Roman Useinov
e7e5904829 UserMiddleware added 2022-01-16 14:02:58 +00:00
Roman Useinov
6c6e647cb6 fix naming after rebase 2022-01-16 13:27:16 +00:00
Michael Bumann
1b347c5177 Move JWT middleware config to tokens and load UserId into the context 2022-01-16 13:26:42 +00:00
Michael Bumann
b1dd3012fd Remove sensitive data from JWT and add expiry 2022-01-16 13:26:42 +00:00
Michael Bumann
95512462f6 Cleanup typos (#28)
* Typo

* Typoc
2022-01-16 14:13:45 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00
Viktor Patchev
1ee2bdb909 Change folder structure 2022-01-10 21:15:30 +01:00
Viktor Patchev
76cc532079 NullString fixes 2022-01-09 15:47:45 +01:00
Viktor Patchev
c96e9958e8 Merge pull request #17 from bumi/learning
Learning
2022-01-08 21:41:09 +01:00
Viktor Patchev
64430c43c2 Remove code leftovers 2022-01-08 18:36:11 +01:00
Michael Bumann
2223ef41d9 User model updates
also use sql.NullString to set access/refresh token
2022-01-08 18:03:06 +01:00
Viktor Patchev
47d8b70429 Add tokens in separate directory 2022-01-08 12:14:52 +01:00
Viktor Patchev
b86e4fa54b Update access token in db and add loggedIn middleware 2022-01-06 18:43:42 +01:00
Viktor Patchev
6c3ff64836 Update to newer gorm version 2022-01-06 11:09:01 +01:00
Viktor Patchev
a8e8b15e79 Setting up the project 2022-01-04 23:25:29 +01:00