elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / getTokenById
getTokenById(
__namedParameters
):Promise
<PublicAuthEntry
>
Returns the full token entry (token
, scheme
, and attributes
)
corresponding to the given _id
(auth_id
) in the well-known "auth" MongoDB
collection.
Throws if invalid/missing data is provided.
• __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.
Promise
<PublicAuthEntry
>