Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm having trouble getting and access_token for a browser game

A topic by James created Jul 24, 2023 Views: 98
Viewing posts 1 to 1

I'm using the following javascript below to get an access token for a browser game.

The problem is queryString and params are empty and the accessToken is null. Is there something I need to setup to get this to work?

var queryString = window.location.hash.slice(1); 
var params = new URLSearchParams(queryString); 
var accessToken = params.get("access_token");
This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.