Fix NameError: add missing 'g' import in auth.py

The previous commit added g.user_id = ... but forgot to import 'g' from Flask.
This was causing 500 errors on all authenticated API endpoints.
parent fdeb8dd6
......@@ -7,7 +7,7 @@ import secrets
import logging
from datetime import datetime, timedelta
from typing import Optional, Dict, Any, Tuple, List
from flask import Flask, request, session, jsonify
from flask import Flask, request, session, jsonify, g
from flask_login import UserMixin
from flask_jwt_extended import create_access_token, decode_token
import jwt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment