fix(core): correct token refreshing in client credential flow

Signed-off-by: Johny Jose <johny@playlyfe.com>