Skip to content

Commit

Permalink
Update versions, refactor auth, and add new constants
Browse files Browse the repository at this point in the history
Updated assembly and file versions in `AssemblyInfo.cs` to `1.6.5.0`. Added `AuthUrl` and `AltAuthUrl` constants in `GlobalObjects.cs` and set `IsBeta` to `false`. Enhanced `TokenSwapAuth` class in `TokenSwapAuth.cs` with better organization, new using directives, and improved error handling. Refactored `TokenSwapAuthController` for readability. Modified `DoAuthAsync` in `SpotifyApiHandler.cs` to support an optional `altUrl` parameter. Added a null check in `RefreshAuthAsync` to handle token retrieval failures.
  • Loading branch information
Inzaniity committed Aug 28, 2024
1 parent cd9cf8d commit 70f51b2
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 185 deletions.
4 changes: 2 additions & 2 deletions Songify Slim/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.4.7")]
[assembly: AssemblyFileVersion("1.6.4.7")]
[assembly: AssemblyVersion("1.6.5.0")]
[assembly: AssemblyFileVersion("1.6.5.0")]
[assembly: NeutralResourcesLanguage("en")]
[assembly: Guid("442379e3-32d8-42d1-ab09-cba229672453")]
4 changes: 3 additions & 1 deletion Songify Slim/Util/General/GlobalObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ public static class GlobalObjects
{
public const string ApiUrl = "https://api.songify.rocks/v2";
public const string BaseUrl = "https://songify.overcode.tv";
public const string AuthUrl = "https://songify.overcode.tv";
public const string AltAuthUrl = "https://songify.bloemacher.com";
public static string ApiResponse;
public static string AppVersion;
public static FlowDocument ConsoleDocument = new();
public static TrackInfo CurrentSong;
public static bool DetachConsole = false;
public static bool IsBeta = true;
public static bool IsBeta = false;
public static bool IsInPlaylist;
public static ObservableCollection<RequestObject> ReqList = new();
public static string Requester = "";
Expand Down
Loading

0 comments on commit 70f51b2

Please sign in to comment.