elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / 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.
• __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.
Promise
<PublicAuthEntry
[]>