Переделан способ авторизации по qr
All checks were successful
Release / pack-and-publish (release) Successful in 1m5s
All checks were successful
Release / pack-and-publish (release) Successful in 1m5s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Net;
|
||||
using YandexMusic.API.Models.Account;
|
||||
|
||||
namespace YandexMusic.API.Common;
|
||||
@@ -7,6 +8,15 @@ namespace YandexMusic.API.Common;
|
||||
/// </summary>
|
||||
public class AuthStorage
|
||||
{
|
||||
private CookieContainer _cookieContainer;
|
||||
|
||||
public AuthStorage(CookieContainer cookieContainer)
|
||||
{
|
||||
_cookieContainer = cookieContainer;
|
||||
}
|
||||
|
||||
public CookieContainer CookieContainer => _cookieContainer;
|
||||
|
||||
/// <summary>
|
||||
/// Флаг, указывающий, авторизован ли пользователь.
|
||||
/// </summary>
|
||||
@@ -32,6 +42,11 @@ public class AuthStorage
|
||||
/// </summary>
|
||||
public YAccessToken AccessToken { get; internal set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Внутренние данные авторизации (CSRF, track_id и т.д.).
|
||||
/// </summary>
|
||||
public YAuthToken HeaderToken { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Внутренние данные авторизации (CSRF, track_id и т.д.).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user