Packagecom.myflashlab.air.extensions.firebase.auth
Classpublic class AuthProvider
InheritanceAuthProvider Inheritance Object

Use this class to obtain credential information from different auth providers that Firebase supports.



Public Methods
 MethodDefined By
  
initialize a new instance of this class
AuthProvider
  
getCredential():Object
AuthProvider
  
setAppleAuthProvider($idToken:String, $accessToken:String):void
AuthProvider
  
setEmailAuthProvider($email:String, $password:String):void
Deprecated, instead use setEmailPassAuthProvider
AuthProvider
  
setEmailLinkAuthProvider($email:String, $link:String):void
AuthProvider
  
setEmailPassAuthProvider($email:String, $password:String):void
AuthProvider
  
setFacebookAuthProvider($accessToken:String):void
AuthProvider
  
setGithubAuthProvider($token:String):void
AuthProvider
  
setGoogleAuthProvider($idToken:String, $accessToken:String):void
AuthProvider
  
setPhoneAuthProvider($verificationId:String, $smsCode:String):void
AuthProvider
  
setPlayGamesAuthProvider($serverAuthCode:String):void
AuthProvider
  
setTwitterAuthProvider($token:String, $secret:String):void
AuthProvider
Public Constants
 ConstantDefined By
  APPLE : String = apple.com
[static]
AuthProvider
  EMAIL : String = password
[static] Deprecated, instead use EMAIL_PASS
AuthProvider
  EMAIL_LINK : String = emailLink
[static]
AuthProvider
  EMAIL_PASS : String = password
[static]
AuthProvider
  FACEBOOK : String = facebook.com
[static]
AuthProvider
  FIREBASE : String = firebase
[static]
AuthProvider
  GITHUB : String = github.com
[static]
AuthProvider
  GOOGLE : String = google.com
[static]
AuthProvider
  PHONE : String = phone
[static]
AuthProvider
  PLAY_GAMES : String = playgames.google.com
[static]
AuthProvider
  TWITTER : String = twitter.com
[static]
AuthProvider
Constructor Detail
AuthProvider()Constructor
public function AuthProvider()

initialize a new instance of this class

Method Detail
getCredential()method
public function getCredential():Object

Returns
Object
setAppleAuthProvider()method 
public function setAppleAuthProvider($idToken:String, $accessToken:String):void

Parameters

$idToken:String
 
$accessToken:String

setEmailAuthProvider()method 
public function setEmailAuthProvider($email:String, $password:String):void

Deprecated, instead use setEmailPassAuthProvider

Parameters

$email:String
 
$password:String

setEmailLinkAuthProvider()method 
public function setEmailLinkAuthProvider($email:String, $link:String):void

Parameters

$email:String
 
$link:String

setEmailPassAuthProvider()method 
public function setEmailPassAuthProvider($email:String, $password:String):void

Parameters

$email:String
 
$password:String

setFacebookAuthProvider()method 
public function setFacebookAuthProvider($accessToken:String):void

Parameters

$accessToken:String

setGithubAuthProvider()method 
public function setGithubAuthProvider($token:String):void

Parameters

$token:String

setGoogleAuthProvider()method 
public function setGoogleAuthProvider($idToken:String, $accessToken:String):void

Parameters

$idToken:String
 
$accessToken:String

setPhoneAuthProvider()method 
public function setPhoneAuthProvider($verificationId:String, $smsCode:String):void

Parameters

$verificationId:String
 
$smsCode:String

setPlayGamesAuthProvider()method 
public function setPlayGamesAuthProvider($serverAuthCode:String):void

Parameters

$serverAuthCode:String

setTwitterAuthProvider()method 
public function setTwitterAuthProvider($token:String, $secret:String):void

Parameters

$token:String
 
$secret:String

Constant Detail
APPLEConstant
public static const APPLE:String = apple.com

EMAILConstant 
public static const EMAIL:String = password

Deprecated, instead use EMAIL_PASS

EMAIL_LINKConstant 
public static const EMAIL_LINK:String = emailLink

EMAIL_PASSConstant 
public static const EMAIL_PASS:String = password

FACEBOOKConstant 
public static const FACEBOOK:String = facebook.com

FIREBASEConstant 
public static const FIREBASE:String = firebase

GITHUBConstant 
public static const GITHUB:String = github.com

GOOGLEConstant 
public static const GOOGLE:String = google.com

PHONEConstant 
public static const PHONE:String = phone

PLAY_GAMESConstant 
public static const PLAY_GAMES:String = playgames.google.com

TWITTERConstant 
public static const TWITTER:String = twitter.com