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: