@krypton-org/krypton-auth
Version:
Express authentication middleware, using GraphQL and JSON Web Tokens.
20 lines (19 loc) • 983 B
TypeScript
/**
* Module returning the Mongoose schema merging the default one with the fields provided by the package user through the `extendedSchema` property.
* @module model/UserSchema
*/
/** Mongoose User schema: built merging the default User schema with the fields provided by the package user through the `extendedSchema` property. */
declare const UserSchema: any;
/**
* List of private fields. Fields that are private to users (like email address) and not shared with the public queries (`userById`, `userMany`...) of the API .
*/
declare const privateFields: string[];
/**
* List of internal fields. Fields that are internal to the system, nobody can access it (like user password hash and salt).
*/
declare const internalFields: string[];
/**
* List of uneditable fields. Users can't change the value of those fields (like if the user email is `verified`)
*/
declare const uneditableFields: string[];
export { UserSchema, internalFields, privateFields, uneditableFields };