Skip to main content
Go to Latest
method AuthleteApiFactory.getDefault
import { AuthleteApiFactory } from "https://deno.land/x/authlete_deno@v1.2.3/src/api/authlete_api_factory.ts";

Get the default AuthleteApi instance.

When this method is first accessed, it loads configuration information from a property file named authlete.json (which must be located directly under the execution directory) and creates an instance of the standard implementation class of AuthleteApi interface with the configuration.

Note that the created instance is internally cached in this class and subsequent calls to this method return the cached instance.