官方文档这段描述过于模糊,直接getAccessToken(), getSecret(),是点(.)不出来的,需要把AuthResult的AuthCredential对象
强转成OAuthCredential, 然后再取得:
/**
* Firebase Twiter 认证
*
* @param context
*/
fun doTwitterAuthentication(context: Activity) {
authProvider = OAuthProvider.newBuilder("twitter.com").build()
auth.startActivityForSignInWithProvider(context, authProvider!!)
.addOnSuccessListener { authResult ->
var token: String? = ""
var secret: String? = ""
val temp:OAuthCredential = authR