Where sign-in returns
Gamavas only sends players back to addresses you register for your app, under Where sign-in returns in the developer portal. They must match exactly.
Add your local test address too, for example
http://localhost:5173/. Only localhost and 127.0.0.1 may use http.
The popup, and when it’s blocked
On the web, sign-in opens in a small popup, so your game keeps running underneath. The popup comes back to your registered page, the Gamavas script on that page hands the result to your game’s window, and the popup closes. Browsers only allow popups straight after a click or a tap. That’s why every SDK starts sign-in on press, and why you should call it from an input handler. If a browser blocks the popup anyway, the whole page goes to Gamavas and comes back signed in. The SDK finishes that sign-in when your game loads again (pass.ready on the web).
On desktop and mobile, sign-in uses the player’s own browser, never a web view inside your game. Players can see the real Gamavas address, and they can use their saved passwords.
Scopes
The SDKs ask for what most games need:
The consent screen tells players exactly what your game will get. They approve once; after that, signing in is one click.
Staying signed in
Players stay signed in between visits. The SDKs keep the refresh token (in local storage,PlayerPrefs or your engine’s equivalent) and refresh the short-lived access token when it’s needed. Refresh tokens rotate on every use.
A player can disconnect your game at any time in their Gamavas settings. After that, the next refresh fails, the SDK signs them out, and your player-changed callback fires.
Signing out of your game revokes its refresh token. It doesn’t sign the player out of Gamavas itself.
Before your listing is live
Until your game’s listing is published, only you can sign in to it. You can build and test while it’s in review, and nobody else can connect it yet.Under the hood
- Nothing secret lives in your game: PKCE replaces the client secret. Your client ID is public.
- The ID token is a signed JWT. The SDKs check its issuer, audience and nonce.
- OpenID Connect discovery is at
https://gamavas.fun/api/auth/.well-known/openid-configuration. - The raw endpoints are in the API reference.

