chore: bump version (#3041)

This commit is contained in:
Alex Yang
2023-07-06 11:49:17 +08:00
committed by GitHub
parent e95d28e136
commit fa1cd87348
44 changed files with 508 additions and 495 deletions

View File

@@ -41,7 +41,10 @@ export const CurrentUser = createParamDecorator(
@Injectable()
class AuthGuard implements CanActivate {
constructor(private auth: AuthService, private prisma: PrismaService) {}
constructor(
private auth: AuthService,
private prisma: PrismaService
) {}
async canActivate(context: ExecutionContext) {
const { req } = getRequestResponseFromContext(context);

View File

@@ -28,7 +28,10 @@ const BASE_URL = '/api/auth/';
export class NextAuthController {
private readonly nextAuthOptions: AuthOptions;
constructor(readonly config: Config, readonly prisma: PrismaService) {
constructor(
readonly config: Config,
readonly prisma: PrismaService
) {
const prismaAdapter = PrismaAdapter(prisma);
// createUser exists in the adapter
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion

View File

@@ -19,7 +19,10 @@ export const getUtcTimestamp = () => Math.floor(new Date().getTime() / 1000);
@Injectable()
export class AuthService {
constructor(private config: Config, private prisma: PrismaService) {}
constructor(
private config: Config,
private prisma: PrismaService
) {}
sign(user: UserClaim) {
const now = getUtcTimestamp();

View File

@@ -28,7 +28,7 @@ export type LeafPaths<
T,
Path extends string = '',
MaxDepth extends string = '...',
Depth extends string = ''
Depth extends string = '',
> = Depth extends MaxDepth
? never
: T extends Record<string | number, any>