Generate access token for REST using Email and password.

Hi ,

We are using the User Cliedentials Grant type to generate the access token for REST Calls?

But we configure our community login with email and password.

So in order to generate the access token for the rest call, we need to use emailid instead of Username, Is there anyway to do this ?

Thanks

Satish kumar