import { AuthleteApiFactory } from "https://deno.land/x/authlete_deno@v1.2.3/src/api/authlete_api_factory.ts";
The factory to create an AuthleteApi
instance.
Static Properties
private
defaultApi: AuthleteApi | nullThe default AuthleteApi
instance.
Static Methods
create(config: AuthleteConfiguration, implInfo?: ImplInfo)
Create an instance of a class that implements AuthleteApi
interface with configuration.
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.