You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone wants to use the /fts/* feature toggles with a non-implicit modeling, e.g., with some custom scopes. For example: a companyId that is derived from the req going into the middleware.
Then
the user would need to configure their callback in the cds configuration for the plugin
// context is the cds context// req is the middleware request, which is also on the cds context, so maybe take it from there for consistency?// key you get the fts key, in case you want to model and use different scopes for different fts togglesmodule.exports=(context,key)=>{constcompanyId= ...;// your code herereturn{user: context?.user?.id,tenant: context?.tenant,
companyId,}};
The text was updated successfully, but these errors were encountered:
If someone wants to use the
/fts/*
feature toggles with a non-implicit modeling, e.g., with some custom scopes. For example: acompanyId
that is derived from the req going into the middleware.Then
The text was updated successfully, but these errors were encountered: