File size: 308 Bytes
70b382b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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}")