@olenbetong/appframe-auth
v0.1.0
Published
Logs Node tools in to Appframe sites: per-site credentials, the OS keychain and the login flow shared by the af CLI, the Vite plugin and the deploy scripts.
Readme
@olenbetong/appframe-auth
Logs Node tools in to Appframe sites: which credentials to use for a site
(APPFRAME_LOGIN_<ENV> / APPFRAME_PWD_<ENV>, APPFRAME_LOGIN / APPFRAME_PWD, or the password
af auth saved in the OS keychain), and one login flow that removes a rejected saved password
and asks again in a terminal. Shared by @olenbetong/appframe-cli, @olenbetong/appframe-vite
and the scripts in web/scripts.
import { authenticate } from "@olenbetong/appframe-auth";
import { Client } from "@olenbetong/appframe-data";
let client = new Client("dev.obet.no");
await authenticate(client);