Updated API for delegation token

Optionally receive the `id_token` here