From 526108d4acca32c31741bbcf0142a2fbd9130d35 Mon Sep 17 00:00:00 2001 From: Alper Reha Yazgan Date: Tue, 27 Feb 2024 13:36:54 +0300 Subject: [PATCH] jwt claims verified,verified_at claims added. --- tokens/record.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokens/record.go b/tokens/record.go index 59fc1dc2a..d725c3843 100644 --- a/tokens/record.go +++ b/tokens/record.go @@ -20,6 +20,8 @@ func NewRecordAuthToken(app core.App, record *models.Record) (string, error) { "id": record.Id, "type": TypeAuthRecord, "collectionId": record.Collection().Id, + "verified": record.GetBool("verified"), + "verified_at": record.GetDateTime("verified_at"), }, (record.TokenKey() + app.Settings().RecordAuthToken.Secret), app.Settings().RecordAuthToken.Duration,