Skip to main content

Class: SecretMongo

Defined in: auth/src/models/mongo/SecretMongo.ts:44

Implementation of the Secret interface for storage in a MongoDB database. If SQL is desired, please use models.sql.SecretSQL instead.

Extends​

  • BaseMongoEntity

Implements​

Constructors​

Constructor​

new SecretMongo(other?): SecretMongo

Defined in: auth/src/models/mongo/SecretMongo.ts:64

Parameters​

other?​

Partial<SecretMongo>

Returns​

SecretMongo

Overrides​

BaseMongoEntity.constructor

Properties​

_id?​

optional _id?: any

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseMongoEntity.d.ts:11

The internal unique identifier used by MongoDB.

Inherited from​

BaseMongoEntity._id


data​

data: any

Defined in: auth/src/models/mongo/SecretMongo.ts:47

The data associated with the secret.

Implementation of​

Secret.data


dateCreated​

dateCreated: Date

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:18

The date and time that the entity was created.

Implementation of​

Secret.dateCreated

Inherited from​

BaseMongoEntity.dateCreated


dateModified​

dateModified: Date

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:22

The date and time that the entity was last modified.

Implementation of​

Secret.dateModified

Inherited from​

BaseMongoEntity.dateModified


hint?​

optional hint?: string

Defined in: auth/src/models/mongo/SecretMongo.ts:51

A short textual description that gives the user a hint about what the secret is.

Implementation of​

Secret.hint


lastUsedAt?​

optional lastUsedAt?: string

Defined in: auth/src/models/mongo/SecretMongo.ts:55

The ISO-8601 timestamp of the last time this secret was used to successfully authenticate; unset if it never has been.

Implementation of​

Secret.lastUsedAt


type​

type: SecretType = SecretType.PASSWORD

Defined in: auth/src/models/mongo/SecretMongo.ts:58

The type of secret (e.g. fido2, openid, password, passkey, totp)

Implementation of​

Secret.type


uid​

uid: string

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:14

The universally unique identifier of the entity.

Implementation of​

Secret.uid

Inherited from​

BaseMongoEntity.uid


userUid​

userUid: string = ""

Defined in: auth/src/models/mongo/SecretMongo.ts:62

The unique identifier of the user account this secret is associated with.

Implementation of​

Secret.userUid


version​

version: number

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.

Implementation of​

Secret.version

Inherited from​

BaseMongoEntity.version