Class that encapsulates the configuration for the auth package.
import { Config } from "@tailor-platform/auth/core";export const config = new Config({ apiHost: "http://yourapp.mini.tailor.tech:8000", appHost: "http://localhost:3000",}); Copy
import { Config } from "@tailor-platform/auth/core";export const config = new Config({ apiHost: "http://yourapp.mini.tailor.tech:8000", appHost: "http://localhost:3000",});
Each of these properties in config to specific environment variables or constants you need to define in your application's environment.
config
Collectively, they form the configuration necessary for the client to handle user authentication in a standardized manner.
/unauthorized
/auth/login
/auth/token
/auth/token/refresh
/auth/userinfo
Private
Readonly
Generated using TypeDoc
Class that encapsulates the configuration for the auth package.
Example
Each of these properties in
config
to specific environment variables or constants you need to define in your application's environment.Collectively, they form the configuration necessary for the client to handle user authentication in a standardized manner.
/unauthorized
/auth/login
/auth/token
/auth/token/refresh
/auth/userinfo