elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / createToken
createToken(
__namedParameters
):Promise
<PublicAuthEntry
>
Generates a new full token entry in the well-known "auth" MongoDB collection, including the provided attribute and scheme metadata. Throws on invalid entry data.
The current version of this function uses the bearer
scheme to create v4
UUID "bearer tokens". This implementation detail may change at any time.
• __namedParameters
• __namedParameters.data: LiteralUnknownUnion
<NewAuthEntry
>
Data used to generate a new "auth" entry.
Promise
<PublicAuthEntry
>