Skip to content

Commit d70c1e8

Browse files
committed
feat(plugins): add global config override
1 parent 7709b21 commit d70c1e8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/build/genericComponentOverrideContext.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/superTokens.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ export default class SuperTokens {
199199
}
200200
}
201201

202+
for (const plugin of finalPluginList) {
203+
if (plugin.config) {
204+
config = { ...config, ...plugin.config(config) };
205+
}
206+
}
207+
202208
SuperTokensWebJS.init({
203209
...config,
204210
recipeList: recipes.map(({ webJS }) => webJS),

0 commit comments

Comments
 (0)