Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Should ctx.state.user contains password? #166

@fancyoung

Description

@fancyoung

When I use koa-passwort with passport-local,
user database info such as password are in ctx.state.user.

What's ctx.state.user used for ?
Should I wrap(remove password) it before pass to frontend, or I made some mistake ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions