mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 06:01:51 +09:00
21 lines
No EOL
491 B
Python
21 lines
No EOL
491 B
Python
# read json file .sensitive.json
|
|
|
|
import json
|
|
import os
|
|
|
|
def GetSensitiveData():
|
|
"""
|
|
Reads sensitive data from a .sensitive.json file in the current directory.
|
|
|
|
Returns:
|
|
dict: A dictionary containing the sensitive data.
|
|
"""
|
|
file_path = os.path.join(os.getcwd(), '.sensitive.json')
|
|
|
|
if not os.path.exists(file_path):
|
|
return None
|
|
|
|
with open(file_path, 'r') as file:
|
|
sensitive_data = json.load(file)
|
|
|
|
return sensitive_data |