Closed jchartrand closed 3 months ago
Describe the bug Missing null check on get-credential-links auth header crashes server. This is the line:
https://github.com/digitalcredentials/admin-dashboard/blob/1b26c63ad42bdd2598c79e6fabbcb8f8506f02db/src/endpoints/getCredentialLinks.ts#L18
To Reproduce
Expected behavior
Should check that auth header exists before invoking 'startsWith' and should also move the check into the try/catch
See PR https://github.com/digitalcredentials/admin-dashboard/pull/39
Recently deployed, closing this ticket
Describe the bug Missing null check on get-credential-links auth header crashes server. This is the line:
https://github.com/digitalcredentials/admin-dashboard/blob/1b26c63ad42bdd2598c79e6fabbcb8f8506f02db/src/endpoints/getCredentialLinks.ts#L18
To Reproduce
Expected behavior
Should check that auth header exists before invoking 'startsWith' and should also move the check into the try/catch