codecomet-io / kohoutek

Kohoutek
Apache License 2.0
0 stars 1 forks source link

Hook up JWT validation #15

Open spacedub opened 1 year ago

spacedub commented 1 year ago

Code is here, but has to be put in properly:

https://github.com/codecomet-io/kohoutek/blob/main/app/src/lib/verify-authentication.server.ts#L74

  1. key should be loaded only once, at startup
  2. key should be put in configuration
  3. verification is async in nature and process should be adapted to accommodate that
  4. should be tested... specifically, not clear if the thing just throws or what else it returns

In itself, this is critical, just not right now :)

Tagging @briznad

spacedub commented 1 year ago

Updated url: https://github.com/codecomet-io/kohoutek/blob/jwt-verification/app/src/lib/verify-authentication.server.ts