chore: bump version (#3041)

(cherry picked from commit fa1cd87348)
This commit is contained in:
Alex Yang
2023-07-06 11:49:17 +08:00
parent e2d6d5548f
commit aa31043871
44 changed files with 508 additions and 495 deletions
+4 -1
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);
@@ -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
+4 -1
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();