For Keycloak 21, select your client, go to the Advanced tab, and set Use lower-case bearer type in token responses to off