EzAuth

Support: All platforms

πŸ’‘ Read full documentation in Xerus Games > EzCloud > Documentation

πŸ’‘ Only EzCloud Pro has Playmaker support.

πŸ’‘ Quick Start: You can just drag and drop out-of-the-box buttons to your game UI.

⚠️ For sensitive operations (delete an account, setting a primary email address, and change a password, you must reauthenticate before proceeding

πŸ’‘ Methods that require additional SDKs (Google, Facebook, Twitter) don't work on WebGL. Use OAuth equivalents instead.

using XG.EzCloud; //add this directive to import types from EzCloud namespace

βœ… Sign up new users

Support: All platforms

EzAuth.SignUpNewUser(email, password, callback, fallback, objectName);

πŸ“„ Playmaker reference:


βœ… Sign in Anonymously

Support: All platforms

EzAuth.SignInAnonymous(callback, fallback, objectName);

πŸ“„ Playmaker reference:

βœ… Sign In with Email and Password

Support: All platforms

EzAuth.SignInWithEmail(email, password, callback, fallback, objectName, reauth);

πŸ“„ Playmaker reference:

βœ… Sign In with Google (Pro only)

Support: Mobile & WebGL

EzAuth.SignInWithGoogle(idToken, accessToken, callback, fallback, reauth);

EzAuth.SignInWithGooglePopUp(callback, fallback, objectName, reauth, redirect);

To use Sign-in with Google button comes with EzCloud, just choose the Sign-in type and enter your Web Client ID

πŸ“„ Playmaker reference:

βœ… Sign In with Google Play Games (Pro only)

Support: Android only

EzAuth.SignInWithPlayGames(authCode, callback, fallback, reauth);

πŸ’‘ The easiest way is dropping Sign in with Google Play Games to your scene.

βœ… Sign in with Apple (Pro only)

Support: Mobile & WebGL

  • On Apple plaform

⚠️ Apple for Unity is deprecated. If you still want to use it, you have to modify the SDK to your needs. Signing in with Apple using OAuth is strongly recommended.

EzAuth.SignInWithApple(appleIdToken, rawNonce, callback, fallback, reauth);

  • On Android platform

EzAuth.SignInWithApplePopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign in with Facebook (Pro only)

Support: Mobile & WebGL

Android & iOS (requires Facebook SDK for Unity)

EzAuth.SignInWithFacebook(accessToken, callback, fallback, reauth);

EzAuth.SignInWithFacebookPopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign In with Twitter (Pro only)

Support: Mobile & WebGL

Android & iOS

⚠️ Twitter Kit for Unity is deprecated. If you still want to use it, you have to modify the SDK to your needs. Signing in with Twitter using OAuth is strongly recommended.

EzAuth.SignInWithTwitter(accessToken, secret, callback, fallback, reauth);

EzAuth.SignInWithTwitterPopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign In with Yahoo (Pro only)

Support: Mobile & WebGL

EzAuth.SignInWithYahooPopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign In with GitHub (Pro only)

Support: Mobile & WebGL

EzAuth.SignInWithGitHubPopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign In with Microsoft (Pro only)

Support: Mobile & WebGL

EzAuth.SignInWithMicrosoftPopUp(callback, fallback, objectName, reauth, redirect);

πŸ“„ Playmaker reference:

βœ… Sign In with Phone Number (Pro only)

Support: All platforms

EzAuth.VerifyPhoneNumber(phoneNumber, phoneAuthTimeoutMs, callback, fallback, objectName);

πŸ“„ Playmaker reference:

EzAuth.SignInWithOTP(verificationCode, otp, callback, fallback, objectName);

πŸ“„ Playmaker reference:

βœ… Sign In with Custom Token (Pro only)

Support: All platforms

EzAuth.SignInWithCustomToken(customToken, callback, fallback, objectName, reAuth, redirect);

βœ… Sign Out

Support: All Platforms

EzAuth.SignOut();

πŸ“„ Playmaker reference: