trim the secret so no training spaces cause auth failure