Regain Access To Admin account through direct access

Lately, I have extended my master realm with client secret access. Unfortunately, I can no longer log in using the credentials I used before. I tried to retrieve the token by passing the client ID along with the secret, but the token doesn’t have admin roles on the client. Is there any way I can switch back to client direct access in my master realm?