Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class AuthleteApiFactory
import { AuthleteApiFactory } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";

The factory to create an AuthleteApi instance.

Static Properties

private
defaultApi: AuthleteApi | null

The default AuthleteApi instance.

Static Methods

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.