Hi @omir
Indeed, the openid
scope will allow you to return the information used for the authentication performed in a JWT, known as the ID Token as per the OIDC spec.
If you have any other questions or things you want to share regarding the matter, always feel free to drop a reply!
Kind Regards,
Nik