taskcafe/internal/commands
Jordan Knott 229a53fa0a refactor: replace refresh & access token with auth token only
changes authentication to no longer use a refresh token & access token
for accessing protected endpoints. Instead only an auth token is used.

Before the login flow was:

Login -> get refresh (stored as HttpOnly cookie) + access token (stored in memory) ->
  protected endpoint request (attach access token as Authorization header) -> access token expires in
  15 minutes, so use refresh token to obtain new one when that happens

now it looks like this:

Login -> get auth token (stored as HttpOnly cookie) -> make protected endpont
request (token sent)

the reasoning for using the refresh + access token was to reduce DB
calls, but in the end I don't think its worth the hassle.
2021-04-28 21:38:49 -05:00
..
commands_prod.go feat: add pre-commit hooks & refactor code to pass linting 2020-08-20 18:37:36 -05:00
commands.go refactor: replace refresh & access token with auth token only 2021-04-28 21:38:49 -05:00
migrate.go feat: redesign project sharing & initial registration 2020-12-17 22:39:14 -06:00
reset_password.go feat(cli): Reset Password Command 2020-10-20 18:50:54 -05:00
seed.go fix: fix task position to use task idx not task group idx 2021-01-05 17:00:07 -06:00
web.go refactor: move server.secret warning to before server startup messsage 2021-04-28 21:38:49 -05:00
worker.go refactor: move default viper config values to commands/commands.go 2020-10-20 18:58:15 -05:00