Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 1.1 KB

updateTokensAttributesByAttribute.md

File metadata and controls

32 lines (17 loc) · 1.1 KB

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / updateTokensAttributesByAttribute

Function: updateTokensAttributesByAttribute()

updateTokensAttributesByAttribute(__namedParameters): Promise<number>

Updates all tokens with matching attributes in the well-known "auth" MongoDB collection.

Parameters

__namedParameters

__namedParameters.filter: LiteralUnknownUnion<Partial<object>>

The token attributes used to filter and update tokens.

__namedParameters.update: LiteralUnknownUnion<TokenAttributes>

The object used to patch the tokens' attributes.

Returns

Promise<number>

Source

lib/next-auth/token.ts:585