Added support for the credentials API.