Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.21 KB

File metadata and controls

33 lines (18 loc) · 1.21 KB

elections-cpl.api.hscc.bdpa.orgDocs


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

Function: getTokensByAttribute()

getTokensByAttribute(__namedParameters): Promise<PublicAuthEntry[]>

Returns at most resultsPerPage (from getConfig) full token entries (token, scheme, and attributes) with matching attributes in the well-known "auth" MongoDB collection.

Parameters

__namedParameters

__namedParameters.after_id?: string | ObjectId

Only tokens with an auth_id after (less than) after_id will be returned.

__namedParameters.filter: LiteralUnknownUnion<Partial<object>>

The token attributes used to filter and return tokens.

Returns

Promise<PublicAuthEntry[]>

Source

lib/next-auth/token.ts:508