Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.02 KB

deleteTokensByAttribute.md

File metadata and controls

31 lines (18 loc) · 1.02 KB

elections-cpl.api.hscc.bdpa.orgDocs


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

Function: deleteTokensByAttribute()

deleteTokensByAttribute(__namedParameters): Promise<number>

Deletes all full token entries with matching attributes in the well-known "auth" MongoDB collection. Throws if an attempt is made to delete entries with an empty filter.

Deleted tokens remain in the system but in a deactivated state. They cannot be reactivated or otherwise interacted with after they are deleted/deactivated.

Parameters

__namedParameters

__namedParameters.filter: LiteralUnknownUnion<Partial<object>>

Returns

Promise<number>

Source

lib/next-auth/token.ts:649