How can I set `grant type` when using `google_identity_platform_oauth_idp_config` in terraform?

I am using google_identity_platform_oauth_idp_config in terraform to deploy identity to GCP. I have read this doc: but I can't find where I can set the grant type.

By default it set it to Implicit flow. How can I set it to Code flow?

enter image description here