newvd / Vidu /utils /jwt_reader.py
nmrprogs's picture
Upload 23 files
70b382b verified
raw
history blame contribute delete
308 Bytes
def read_jwt_from_file(file_path):
try:
with open(file_path, "r") as file:
jwt_token = file.read().strip()
return jwt_token
except FileNotFoundError:
print(f"File not found: {file_path}")
except IOError as e:
print(f"Error reading file: {e}")