Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
bug fix when saving token to jwt_tokens database table
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanKarelin committed Jan 1, 2022
1 parent 6345599 commit 2bcfefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TokenProviders/JwtDatabaseProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class JwtDatabaseProvider extends AbstractDatabaseProvider implem
token: token.tokenHash,
type: token.type,
refresh_token: token.refreshToken,
refresh_token_expires_at: token.refreshTokenExpiresAt,
refresh_token_expires_at: token.refreshTokenExpiresAt?.toFormat(client.dialect.dateTimeFormat),
expires_at: token.expiresAt ? token.expiresAt.toFormat(client.dialect.dateTimeFormat) : null,
created_at: DateTime.local().toFormat(client.dialect.dateTimeFormat),
...token.meta,
Expand Down

0 comments on commit 2bcfefe

Please sign in to comment.