Get id_token for magic link authentication

I use GitHub - p2-inc/keycloak-magic-link: Magic Link Authentication for Keycloak plugin to implement passwordless (magic link) authentication.
When user click on link it redirect to my app and it fetches token using authorization_code authentication.

To implement logout I need id_token which is missing in the tokens list.

I tried to add:
scope: openid
and
response_type: code id_token token

but this doesn’t help.

I need help with the following questions:
how can I get id_token from the auth info ?
or how to logout without id_token ?