import { AuthletePropertyConfiguration } from "https://deno.land/x/authlete_deno@v1.2.7/src/config/authlete_configuration_property.ts";
Create a configuration from a property file named authlete.json
.
The property file must be located directly under the execution
directory. Here is an example of authlete.json
.
{
"baseUrl": "https://api.authlete.com/api",
"serviceOwnerApiKey": "<YOUR_SERVICE_OWNER_API_KEY>",
"serviceOwnerApiSecret": "<YOUR_SERVICE_OWNER_API_SECRET>",
"serviceApiKey": "<YOUR_SERVICE_API_KEY>",
"serviceApiSecret": "<YOUR_SERVICE_API_SECRET>",
"timeout": 10000
}
If failed to read the property file or failed to parse it as JSON, error is thrown.
Returns
Promise<AuthletePropertyConfiguration>