public async void ApplicationAuthorizedCallback(string url) { // Parse query parameters string session_token_code = ExtractStringWithRegex("(?<=session_token_code=)(.*)(?=&state=)", url); // Log into the Nintendo Account account = await NintendoAccount.Login(request, session_token_code, "urn:ietf:params:oauth:grant-type:jwt-bearer-session-token"); // Set the session token in the configuration Configuration.currentConfig.session_token = account.accounts_session_token; Configuration.Save(); // Log in to NSO await LogIntoOnlineLounge(); // Get web services await GetAllWebServices(); // Populate the list view with the web services this.Invoke((MethodInvoker) delegate { PopulateListView(); }); }
public async Task UseSessionTokenForAccount() { account = await NintendoAccount.Login("71b963c1b7b6d119", Configuration.currentConfig.session_token, "urn:ietf:params:oauth:grant-type:jwt-bearer-session-token"); }