How to use the @webiny/api-security.withUser function in @webiny/api-security

To help you get started, we’ve selected a few @webiny/api-security examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / api-files / src / plugins / models.js View on Github external
const createBase = () =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();
github webiny / webiny-js / packages / api-page-builder / src / plugins / models.js View on Github external
const createBase = ({ maxPerPage = 100 } = {}) =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver, maxPerPage }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();
github webiny / webiny-js / packages / api-i18n / src / plugins / models.js View on Github external
const createBase = () =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();
github webiny / webiny-js / packages / api-cms / src / plugins / models.js View on Github external
const createBase = () =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();
github webiny / webiny-js / packages / api-forms / src / plugins / models.js View on Github external
const createBase = ({ maxPerPage = 100 } = {}) =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver, maxPerPage }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();
github webiny / webiny-js / packages / api-security / src / plugins / models.js View on Github external
const createBase = () =>
            flow(
                withFields({
                    id: context.commodo.fields.id()
                }),
                withStorage({ driver }),
                withUser(context),
                withSoftDelete(),
                withCrudLogs()
            )();

@webiny/api-security

Security layer for the Webiny GraphQL API.

MIT
Latest version published 2 days ago

Package Health Score

75 / 100
Full package analysis

Popular @webiny/api-security functions

Similar packages