Skip to content

Commit 81c7b25

Browse files
Copilothotlong
andcommitted
Add ID field to verification token creation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8e501b9 commit 81c7b25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/adapter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export function createObjectQLAdapter(config: ObjectQLAdapterConfig): Adapter {
180180
async createVerificationToken(data: AdapterVerificationToken): Promise<AdapterVerificationToken> {
181181
const token = await ql.entity('VerificationToken').create({
182182
data: {
183+
id: data.id || crypto.randomUUID?.() || `${Date.now()}-${Math.random()}`,
183184
identifier: data.identifier,
184185
token: data.token,
185186
expiresAt: data.expiresAt,

0 commit comments

Comments
 (0)