Firebase_Implementation #135

Merged
ashutosh.nehete merged 62 commits from Firebase_Implementation into main 2025-09-20 12:11:54 +00:00
Showing only changes of commit f6ce8dd4f6 - Show all commits

View File

@ -390,8 +390,8 @@ namespace MarcoBMS.Services.Controllers
await _refreshTokenService.BlacklistJwtTokenAsync(jwtToken);
_logger.LogInfo("JWT access token blacklisted successfully");
}
string? origin = HttpContext.Request.Headers["Origin"].FirstOrDefault();
if (string.IsNullOrWhiteSpace(origin))
string userAgent = HttpContext.Request.Headers["User-Agent"].ToString();
if (userAgent.Contains("Dart"))
{
var fcmTokenMapping = await _context.FCMTokenMappings.FirstOrDefaultAsync(ft => ft.EmployeeId == loggedInEmployee.Id && ft.TenantId == tenentId);
if (fcmTokenMapping != null)