Forbes Lindesay
Forbes Lindesay
Alternatively we could follow the approach in https://github.com/pelotom/runtypes/pull/131 of creating a special type to represent the "Maybe" fields.
Draft implementation: #17
A side effect of this change is that we are also effectively deep cloning everything, which takes care of https://github.com/pelotom/runtypes/issues/132 and https://github.com/pelotom/runtypes/issues/24 (remove unknown keys from validated object). It may...
It should be able to handle cases where unions are nested and cases where one entry in the union has multiple possible literal values for a tag
I've renamed them to Record to match TypeScript's built in `Record` type.
One of the most popular session implementations for express is cookie-session. It stores the session in plain text in a cookie (JSON encoded). By default passport-oauth1 stores the `oauth_token_secret` in...
https://www.npmjs.com/package/cookie-session Signs the session data with a secret key, but it does not encrypt the data. A user can still read the contents of the session as plain text.