Skip to content
Snippets Groups Projects
Commit 6e5dbd41 authored by nahyun's avatar nahyun
Browse files

fix: fwt 토큰 access and refresh토큰 분리+https 인증

parent 8f6098e7
Branches
No related tags found
3 merge requests!18Secure,!17Secure,!16Secure
......@@ -16,6 +16,7 @@ const secretKey = process.env.JWT_SECRET; // 실제 환경에서는 환경 변
const refreshTokenSecretKey = process.env.JWT_REFRESH_SECRET;
const https = require('https');
const WebSocketServer = require('./WebSocket');
const fs = require('fs');
const expressSanitizer = require('express-sanitizer');
......@@ -401,6 +402,9 @@ app.get('/auth/status', authenticateToken, (req, res) => {
});
});
const server = https.createServer(sslOptions, app);
const wss = new WebSocketServer(server);
// app.listen(process.env.PORT, () => {
// console.log(`Server is running on http://localhost:${process.env.PORT}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment