User
User
A User represents any authenticated user of the Vendure API. This includes both Administrators as well as registered Customers.
Signature
class User extends VendureEntity implements HasCustomFields, SoftDeletable {
    constructor(input?: DeepPartial<User>)
    @Column({ type: Date, nullable: true })
    deletedAt: Date | null;
    @Column()
    identifier: string;
    @OneToMany(type => AuthenticationMethod, method => method.user)
    authenticationMethods: AuthenticationMethod[];
    @Column({ default: false })
    verified: boolean;
    @ManyToMany(type => Role)
    @JoinTable()
    roles: Role[];
    @Column({ type: Date, nullable: true })
    lastLogin: Date | null;
    @Column(type => CustomUserFields)
    customFields: CustomUserFields;
    @OneToMany(type => AuthenticatedSession, session => session.user)
    sessions: AuthenticatedSession[];
    getNativeAuthenticationMethod() => NativeAuthenticationMethod;
    getNativeAuthenticationMethod(strict?: boolean) => NativeAuthenticationMethod | undefined;
    getNativeAuthenticationMethod(strict?: boolean) => NativeAuthenticationMethod | undefined;
}
- 
Extends: VendureEntity
- 
Implements: HasCustomFields,SoftDeletable
constructor
method
(input?: DeepPartial<User>) => UserdeletedAt
property
Date | nullidentifier
property
stringauthenticationMethods
property
verified
property
booleanroles
property
Role[]lastLogin
property
Date | nullcustomFields
property
CustomUserFieldssessions
property
getNativeAuthenticationMethod
method
getNativeAuthenticationMethod
method
(strict?: boolean) => NativeAuthenticationMethod | undefinedgetNativeAuthenticationMethod
method
(strict?: boolean) => NativeAuthenticationMethod | undefined