Browse Source

fix: rather than resetting token version to null set it with a new value to avoid unexpected behaviour

pull/6032/head
Pranav C 1 year ago
parent
commit
80fefbdcfb
  1. 2
      packages/nocodb/src/services/users/users.service.ts

2
packages/nocodb/src/services/users/users.service.ts

@ -503,7 +503,7 @@ export class UsersService {
if (user?.id) {
await User.update(user.id, {
refresh_token: null,
token_version: null,
token_version: randomTokenString(),
});
}
return { msg: 'Signed out successfully' };

Loading…
Cancel
Save