credentials lib