os_browser != browser_not_a_browser if your game builds for those too.
Install
1
Import the package
Download
GamavasPass-<version>.yymps from github.com/Gamavas/pass-gamemaker/releases. In GameMaker, choose Tools → Import Local Package, pick the file and import GamavasPass.2
Register your page
At developer.gamavas.fun, connect your listing to get a client ID, and add your game’s page under Where sign-in returns. To test from GameMaker, add the local address the HTML5 runner opens too, for example
http://127.0.0.1:51264/ (your port).Sign players in
Start once, for example in your first room’s Create event:{ ok, value, error, message }. Missing values are "", never undefined, because reading a missing struct field is an error in GML.
Once gamavas_is_ready() is true, gamavas_is_signed_in() and gamavas_player() say who’s signed in: { id, handle, displayName, avatarUrl, email }.
Achievements, progress and selling
Your server
@gamavas/pass-server.
Options
Errors
error is one of popup_closed or access_denied (signing in), popup_blocked, signed_out, forbidden, not_found, rate_limited, network or not_initialized (call gamavas_init first).
