Invalid client or Invalid client credentials from Nodejs admin client

When i try to connect using keycloak-admin-client it gives me Invalid client or Invalid client credentials error. I was able to get the tocken from postman.
This is my code:

const keycloakAdminClient = require(‘keycloak-admin-client’);
const keycloakConfig = require(‘…/config/keycloakConfig’);

let keycloakAdminClientInstance;

async function initializeKeycloakAdminClient() {
try {
const settings = {
baseUrl: keycloakConfig.baseUrl,
realmName: keycloakConfig.realmName,
clientId: keycloakConfig.clientId,
clientSecret: keycloakConfig.clientSecret,
grant_type: ‘client_credentials’,
keycloakAdminClientInstance = await keycloakAdminClient(settings);

    console.log('Keycloak Admin Client initialized successfully');
} catch (error) {
    console.error('Keycloak Admin Client initialization failed:', error);
    throw error;