auth.andert.me/config-overrides.js
Howard 81a70959af
Fix session sigs (#7)
* Decouple Google OAuth sign in with Mint PKP step

* Use new signSessionKey SDK method

* Handle authentication separately from storing conditions

* Use auth-helpers package to generate session sigs correctly

* Use react-app-rewired to use config override for fixing webpack bundle

create-react-app default webpack config does not match against .cjs files, so we need to override the default config to bundle .cjs files from auth-helpers using CJS to import the .cjs file
from recap-ts.

* Implement encrypt / decrypt using session sigs

* Use latest js-sdk, use npm instead of yarn

yarn still installs tslib at 1.14.1, which breaks, whereas npm installs at 2.5.0
2023-05-17 17:14:36 -07:00

16 lines
324 B
JavaScript

module.exports = {
webpack: function(config, env) {
config.module.rules = config.module.rules.map(rule => {
if (rule.oneOf instanceof Array) {
rule.oneOf[rule.oneOf.length - 1].exclude = [
/\.(js|mjs|jsx|cjs|ts|tsx)$/,
/\.html$/,
/\.json$/,
];
}
return rule;
});
return config;
},
};