Conversation
… into the project and use best Next.js conventions
|
| @@ -0,0 +1,42 @@ | |||
| import { exportJWK, generateKeyPair as joseGenerateKeyPair, importJWK, KeyLike } from 'jose'; | |||
There was a problem hiding this comment.
I am not sure whether we want to commit this logic. It feels more like something to have locally than to add to the official demo.
There was a problem hiding this comment.
I have updated the demo to require users to generate a key pair manually, rather than generating one automatically.
/api/auth/token,/api/auth/keys) and CRUD writes (/api/data)POWERSYNC_PRIVATE_KEY/POWERSYNC_PUBLIC_KEYenv vars, auto-generate a temporary key pair if not set