splatnet3_scraper.auth.NSO.get_web_service_access_token(id_token, user_info, f_token, request_id, timestamp)

Given the id_token, user data, f_token, request_id, and timestamp, returns the Web Service Credential Access Token.

This is the first step of the gtoken generation process. This will return the Web Service Credential Access Token from Nintendo’s servers, which is then used to obtain the gtoken.

Parameters:
id_token : str

The id_token from the user access response.

user_info : dict[str, str]

The dictionary of user info returned by get_user_info. This must contain the keys language, birthday, and country.

f_token : str

The f_token generated from the id_token. It is important that this is the f_token generated from the id_token using the first hashing method and not the second.

request_id : str

The request_id returned alongside the f_token and timestamp.

timestamp : str

The timestamp returned alongside the f_token and request_id.

Returns:
  • str – The Web Service Credential Access Token.

  • str – The coral user ID.