Skip to content

Using Auth instance in Cloud Code #1683

@oallouch

Description

@oallouch

Hi,

I'm not sure how to use the Auth class in my Cloud Code.
I'd like to do some security checks in my before/afterSave methods.
Is it possible to use the already created Auth instance added in req by middleware.js ?
Should I create another one using the session token ?
Should I make my own Role queries ?

Thx a lot in advance,

Olivier Allouch
www.illicotravel.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions