The challenge
WebGL builds run inside the browser sandbox, and the Twitter API flow needed for login did not work from the WebGL client side. A client only integration was ruled out, so the login flow had to move off the client.
What I built
- PlayFab authentication with email login
- Twitter login routed through an Azure serverless function
- PlayFab CloudScript calls from Unity to invoke the function
- PlayFab leaderboards
Results
- Email and Twitter login working in the WebGL build
- Third party API calls kept on the server side, out of the browser build




