Adds optjsopns to use flags for credentials.