I want to extend the authentication.oauth config section with a custom strategy.
However, the code errors with:
/Users/jamesholcomb/code/app/node_modules/ajv/lib/compile/util.ts:211
if (mode === true) throw new Error(msg)
^
Error: strict mode: default is ignored for: data10.header
at checkStrictMode (/Users/jamesholcomb/code/jaunt/node_modules/ajv/lib/compile/util.ts:211:28)
I could not find any examples or documentation, so I am flying blind with the approach.
Also, TS complains with TS2589 on the line calling getValidator
Type instantiation is excessively deep and possibly infinite.ts(2589)
⚠ Error(TS2589) |
Type instantiation is excessively deep and possibly infinite.
Steps to reproduce
I want to extend the
authentication.oauth
config section with a custom strategy.However, the code errors with:
I could not find any examples or documentation, so I am flying blind with the approach.
Also, TS complains with TS2589 on the line calling
getValidator
This was asked on Discord as well:
https://discord.com/channels/509848480760725514/930352418179391528/1103802794223358013
Expected behavior
Type compiles
Actual behavior
Error: strict mode: default is ignored for: data10.header
System configuration
feathers 5.0.5
tsconfig.json