credential method

OAuthCredential credential({
  1. String? accessToken,
  2. String? secret,
  3. String? idToken,
  4. String? rawNonce,
  5. String? signInMethod,
})

Create a new OAuthCredential from a provided accessToken;

Implementation

OAuthCredential credential({
  String? accessToken,
  String? secret,
  String? idToken,
  String? rawNonce,
  String? signInMethod,
}) {
  return OAuthCredential(
    providerId: providerId,
    signInMethod: signInMethod ?? 'oauth',
    accessToken: accessToken,
    secret: secret,
    idToken: idToken,
    rawNonce: rawNonce,
  );
}