Added beginning of login functionality

This commit is contained in:
2026-01-05 16:51:04 -05:00
parent f65d97a50a
commit 03356d813f
4 changed files with 78 additions and 10 deletions

View File

@@ -159,3 +159,8 @@ def me():
except jwt.InvalidTokenError:
return jsonify({'error': 'Invalid token', 'code': INVALID_TOKEN}), 401
@auth_api.route('/logout', methods=['POST'])
def logout():
resp = jsonify({'message': 'Logged out'})
resp.set_cookie('token', '', expires=0, httponly=True, secure=True, samesite='Strict')
return resp, 200