elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / updateTokenAttributesById
updateTokenAttributesById(
__namedParameters
):Promise
<number
>
Updates a token's attributes by matching the provided data against the well-known "auth" MongoDB collection. Throws on invalid/missing target or entry data.
Note that the new attributes
object will patch, not replace, the old
object.
• __namedParameters
• __namedParameters.auth_id: undefined
| string
| ObjectId
The ObjectId of the token in the well-known "auth" MongoDb
collection. Throws if auth_id
cannot be coerced into an ObjectId.
• __namedParameters.update: LiteralUnknownUnion
<TokenAttributes
>
The object used to patch the token's attributes.
Promise
<number
>