identity: use subscription v2 types & api

This commit is contained in:
Abdullah Atta
2025-10-07 16:44:15 +05:00
committed by Abdullah Atta
parent 55a2223198
commit 500a64de18
7 changed files with 342 additions and 219 deletions
@@ -109,7 +109,7 @@ namespace Streetwriters.Identity.Controllers
await UserManager.AddToRoleAsync(user, client.Id);
if (Constants.IS_SELF_HOSTED)
{
await UserManager.AddClaimAsync(user, UserService.SubscriptionTypeToClaim(client.Id, Common.Enums.SubscriptionType.PREMIUM));
await UserManager.AddClaimAsync(user, UserService.SubscriptionPlanToClaim(client.Id, SubscriptionPlan.BELIEVER));
}
else
{