-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: login and logout #15
base: develop
Are you sure you want to change the base?
Conversation
한번에 너무 큰 수정이 올라온거 같은데 나눠서 올려주실수 있을까요? |
생각해보니 login 을 native 에서 진행하면 passport 가 필요 없을수도 있을것 같아요 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 잘 이해를 못한 것인지..
oauth2 에서 세션을 이용해야하는 이유를 알 지 못하겠습니다.
각각의 서비스들에서는 세션과 jwt를 혼용하여 사용하고 있구요..
명확하게 의도를 설명해주실 수 있으신가요?
// TODO: add verify user middleware | ||
router.post('/', async (req: Request, res: Response) => { | ||
export const createEnquiry = async (req: Request, res: Response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 왜 수정하신걸까요?
import { findUserById } from '@/services/v1/user' | ||
|
||
export default function configurePassport(passport: PassportStatic): void { | ||
passport.serializeUser((user: User, done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
세션을 로그인 과정에서 어떻게 이용하시나요?
oauth 로그인 이후에, jwt 를 기준으로 저희만의 jwt로 sign 해서 클라이언트에게 전달하는 로직으로 확인해서요..!
} | ||
|
||
export const logout = (req: Request, res: Response) => { | ||
req.logout() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
의도하신 로그아웃 기능이 사용자 정보를 저장한 세션을 만료시키는 것이 맞을까요?
@rlooo 해당 PR은 close 처리해주실 수 있으신가요? |
No description provided.