From 6adcd2884ee48ec0b1c8b7486e42b2eeffc48159 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 1 Sep 2024 03:19:31 +0200 Subject: move to monorepo --- auth/examples/simple_example.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 auth/examples/simple_example.js (limited to 'auth/examples/simple_example.js') diff --git a/auth/examples/simple_example.js b/auth/examples/simple_example.js new file mode 100644 index 0000000..2bf38c1 --- /dev/null +++ b/auth/examples/simple_example.js @@ -0,0 +1,9 @@ +#!/usr/bin/env -S gjs -m +import Auth from "gi://AstalAuth"; +import Gio from "gi://Gio"; + +Gio._promisify(Auth.Pam, "authenticate"); + +await Auth.Pam.authenticate("password") + .then(_ => print("authentication sucessful")) + .catch(logError); \ No newline at end of file -- cgit v1.2.3