itch.io Spring Selects Series A
On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Get Itch username in HTML5 play in browser game

A topic by Terzom created Oct 22, 2020 Views: 283 Replies: 1
Viewing posts 1 to 2

I've tried to do ajax/xhr calls to https://itch.io/api/1/me/me but then I get CORS issue. I made a manifest and added together with the files but it seem to completely ignore the manifest in the 'play in browser' mode.

Is there any way to get the visitors username for me to use in the game (scoreboard)? Without needing to make it into an app or place it on a server.

Admin(+2)

At the moment we don’t provide API for fetching user’s credentials directly in the browser right now. It’s something we do want to add in the future, but it will come with a permissions dialog to ensure that no info about the current account is leaked to the game.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.