(20241214) testing token keys instead of direct ids.
This commit is contained in:
@@ -83,12 +83,18 @@ import datetime
|
||||
class CoreAuthTokenModel(BaseModel):
|
||||
|
||||
authTokenId: ObjectId = Field(
|
||||
description = "the id of the document in mongodb that holds this information",
|
||||
description = "the id of the document in mongodb that holds this information; hide from the ui layer",
|
||||
frozen = True,
|
||||
default = None,
|
||||
alias = "_id"
|
||||
)
|
||||
|
||||
key: ObjectId = Field(
|
||||
description = "the expendable reference to this auth; expose this to the ui",
|
||||
frozen = True,
|
||||
default_factory = lambda: ObjectId()
|
||||
)
|
||||
|
||||
serviceType: Literal["software", "email", "sms", "chat", "paymentGateway"] = Field(
|
||||
description = "the kind of service this message was sent/received from",
|
||||
frozen = True
|
||||
|
||||
Reference in New Issue
Block a user