8000 Running a global hook after service hooks · Issue #1723 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Running a global hook after service hooks #1723

@rlunden

Description

@rlunden

Is there a way to run a global before hook, for example setField({ from: 'params.user.id', as: 'data.createdById' }), after the service level before hooks have run?

The services should in this case manage authentication and decide which authentication strategies that are allowed so the authenticate hook cannot be global and the global hook needs to be run after authentication.

I'm open for any workarounds, but I'd rather not add the createdById hook to all existing and new services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0