Skip to main content
Latest
method AuthleteApiFactory.getDefault
import { AuthleteApiFactory } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

Get a promise object that returns the default AuthleteApi instance.

When this method is first called, it creates a promise object that 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. And then, the promise object is cached in this class. This means that subsequent calls to this method return the cached promise object.