|
|
|
|
|
by xori
789 days ago
|
|
Rather than generating key data on the client in the open, and storing it in IDB, I would recommend the Credential Management API[0]. Hand off the responsibility to proper generation and storage to the user agent. Then do your signing of the JWT with them instead. [0]: https://developer.mozilla.org/en-US/docs/Web/API/Credential_... |
|
If it can store live objects - its perfect.
IDB is neat because it can store a PrivateKey Object whose `extractable` attribute has been set to false. So when you try to see the crypto data, you cannot.