Update gen-token.ts
This commit is contained in:
parent
b245393bc4
commit
549092d9aa
@ -42,6 +42,7 @@ export default define(meta, async (ps, user) => {
|
|||||||
await AccessTokens.save({
|
await AccessTokens.save({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
|
lastUsedAt: new Date(),
|
||||||
session: ps.session,
|
session: ps.session,
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
token: accessToken,
|
token: accessToken,
|
||||||
|
Loading…
Reference in New Issue
Block a user