/// <summary> /// Event called from deep linker when the path indicates API response. /// </summary> private void OnDeepLinkApi(WebLink link) { if (link.Parameters.TryGetValue("response", out string response)) { try { var bytes = Convert.FromBase64String(response); string decodedResponse = Encoding.UTF8.GetString(bytes); var authResponse = new AuthResponse(new CustomWebResponse() { IsSuccess = true, TextData = decodedResponse }); authResponse.Evaluate(); HandleResponse(authResponse); } catch (Exception e) { // TODO: Log Logger.LogError($"Failed to parse deeplink response: {response}\n{e.ToString()}"); } } }