From 716adfaed6d8e549521b6dfe8bf5960d9f73bbd6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 May 2020 16:36:04 +0200 Subject: [PATCH] Fix refresh token --- server/models/oauth/oauth-token.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts index 3541b6103..38953e8ad 100644 --- a/server/models/oauth/oauth-token.ts +++ b/server/models/oauth/oauth-token.ts @@ -164,9 +164,7 @@ export class OAuthTokenModel extends Model { client: { id: token.oAuthClientId }, - user: { - id: token.userId - }, + user: token.User, token } as OAuthTokenInfo })