credential

fun credential(optionsOrIdToken: JsAny?, accessToken: String? = definedExternally): AuthCredential(source)

The JS SDK only reads the options; accessToken is left undefined when omitted.