Skip to main content

Class: SecretSQL

Defined in: auth/src/models/sql/SecretSQL.ts:38

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

Extends​

  • BaseEntity

Implements​

Constructors​

Constructor​

new SecretSQL(other?): SecretSQL

Defined in: auth/src/models/sql/SecretSQL.ts:58

Parameters​

other?​

Partial<SecretSQL>

Returns​

SecretSQL

Overrides​

BaseEntity.constructor

Properties​

data​

data: any

Defined in: auth/src/models/sql/SecretSQL.ts:41

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​

BaseEntity.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​

BaseEntity.dateModified


hint?​

optional hint?: string

Defined in: auth/src/models/sql/SecretSQL.ts:45

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/sql/SecretSQL.ts:49

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/sql/SecretSQL.ts:52

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​

BaseEntity.uid


userUid​

userUid: string = ""

Defined in: auth/src/models/sql/SecretSQL.ts:56

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​

BaseEntity.version