Skip to content

Commit

Permalink
fix: merge auth
Browse files Browse the repository at this point in the history
  • Loading branch information
r-4bb1t committed Feb 15, 2024
1 parent 187f377 commit 991dac0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,7 @@ async def kakao_login(token_data: TokenData, db: Session = Depends(get_db)):

user = db.query(LUsers).filter(LUsers.kakao_id == user_info['id']).first()

<<<<<<< HEAD
# access token 만들기
access_token = jwt.encode({"sub": user.user_id},
SECRET_KEY, algorithm=ALGORITHM)
=======
access_token = jwt.encode({"sub": str(user.user_id), "exp": datetime.utcnow() + timedelta(weeks=4)}, SECRET_KEY, algorithm=ALGORITHM)
>>>>>>> bbdec40e0caa1c99f0be8912f0981ab8f54b119d

if user is None:
new_user = LUsers(
Expand Down

0 comments on commit 991dac0

Please sign in to comment.