While trying to use the script in 1.39 you get the following message
Missing value for "oauth2GrantTypes" field
This value is hardcoded in the script and needs to be altered to make the script work again
This was detected while making the 1.39 release of Wikibase Suite Team T329236