I have developed basic jira application with npm connect framework. I host is on heroku with postgresql. First installation is fine. Subsequent installs seems fine until I try to open my pages then it is giving me this error:
Authentication verification error (400): Unable to decode JWT token: Error: Signature verification failed for input: eyJ0.... with method sha256
If I empty DB it works fine. This error is happening when there are duplicate entries in DB with this Query:
SELECT "id", "clientKey", "key", "val" FROM "AddonSettings" AS "AddonSetting"
|5 |9b8b3c4d-f33b-3f03-8cab-8d9562498a61 |clientInfo |{"key":"AO-apppp","clientKey":"9b8b3c4d-f33b-3f03-8cab-8....","oauthClientId":"eyJob3N0S2V....|
|6 |9b8b3c4d-f33b-3f03-8cab-8d9562498a61 |clientInfo |{"key":"AO-apppp","clientKey":"9b8b3c4d-f33b-3f03-8cab-8d...","oauthClientId":"eyJob3N0S2V...|
If I delete this it works fine but if try to install again new entries come. I store data on DB so I cant reset it.