Built-in flows for Google, Facebook, Discord, and more.
UniWebView ships authentication-flow helpers for the major providers. Configure the client ID once on the inspector component, call StartAuthenticationFlow(), and you get a typed token back through standard Unity events — no redirect-URL plumbing of your own.
Read the docs ↗using UnityEngine;
public class GoogleSignIn : MonoBehaviour {
void Start() {
var flow = GetComponent<UniWebViewAuthenticationFlowGoogle>();
flow.StartAuthenticationFlow();
}
public void OnGoogleTokenReceived(UniWebViewAuthenticationGoogleToken token) {
Debug.Log("Access token: " + token.AccessToken);
}
public void OnGoogleAuthError(long errorCode, string errorMessage) {
Debug.LogError("Auth failed: " + errorCode + " " + errorMessage);
}
}