Add production-ready SuperAdmin API features for tenants, SMS, servers, and plugins.

Includes mobile auth, get_user/get_version, SMS wallet parity endpoints, appearance backfill, and related Prisma migrations.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-30 18:19:53 +03:30
co-authored by Cursor
parent ddf36f8470
commit a6b3457779
54 changed files with 3770 additions and 156 deletions
+9 -4
View File
@@ -3,10 +3,11 @@ import { ConfigService } from '@nestjs/config';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PrismaService } from '../prisma/prisma.service';
import { displayName } from '../common/mobile.util';
export type JwtPayload = {
sub: string;
email: string;
mobile: string;
role: string;
};
@@ -28,8 +29,9 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
where: { id: payload.sub },
select: {
id: true,
email: true,
name: true,
mobile: true,
firstName: true,
lastName: true,
role: true,
isActive: true,
},
@@ -39,6 +41,9 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
return null;
}
return user;
return {
...user,
name: displayName(user.firstName, user.lastName),
};
}
}