Get credentials from argument