diff --git a/examples/hosted-oauth/config.json b/examples/hosted-oauth/config.json deleted file mode 100644 index 9b54e3df..00000000 --- a/examples/hosted-oauth/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "SECRET_KEY": "replace me with a random string", - "NYLAS_OAUTH_CLIENT_ID": "replace me with the client ID from Nylas", - "NYLAS_OAUTH_CLIENT_SECRET": "replace me with the client secret from Nylas" -} diff --git a/examples/hosted-oauth/config.py b/examples/hosted-oauth/config.py new file mode 100644 index 00000000..12da98a2 --- /dev/null +++ b/examples/hosted-oauth/config.py @@ -0,0 +1,3 @@ +SECRET_KEY = ("replace me with a random string",) +NYLAS_OAUTH_CLIENT_ID = ("replace me with the client ID from Nylas",) +NYLAS_OAUTH_CLIENT_SECRET = "replace me with the client secret from Nylas" diff --git a/examples/hosted-oauth/server.py b/examples/hosted-oauth/server.py index 72caed31..cd640531 100644 --- a/examples/hosted-oauth/server.py +++ b/examples/hosted-oauth/server.py @@ -40,7 +40,7 @@ # For more information, check out the documentation: http://flask.pocoo.org # Create a Flask app, and load the configuration file. app = Flask(__name__) -app.config.from_json("config.json") +app.config.from_pyfile("config.py") # Check for dummy configuration values. # If you are building your own application based on this example,