Skip to content

Commit

Permalink
jwt claims verified,verified_at claims added.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlperRehaYAZGAN committed Feb 27, 2024
1 parent 03800d4 commit 526108d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokens/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 526108d

Please sign in to comment.