diff options
author | Aylur <[email protected]> | 2024-09-01 14:17:36 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-01 14:17:36 +0200 |
commit | 3e3f045d650a839d21f7b649da7aa5c19bd2e38b (patch) | |
tree | 9a974eb0d38932d474940288c662bd1f01ea3088 /auth/examples/full_example.js | |
parent | 408faee16911ccfaa3e7dad69f9938fd4a696704 (diff) |
monorepo structuring
Diffstat (limited to 'auth/examples/full_example.js')
-rw-r--r-- | auth/examples/full_example.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/auth/examples/full_example.js b/auth/examples/full_example.js deleted file mode 100644 index 7359784..0000000 --- a/auth/examples/full_example.js +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env -S gjs -m - -import Auth from "gi://AstalAuth"; -import GLib from "gi://GLib"; - -const loop = GLib.MainLoop.new(null, false); - -const pam = new Auth.Pam(); -pam.connect("auth-prompt-visible", (p, msg) => { - print(msg); - p.supply_secret(""); -}); -pam.connect("auth-prompt-hidden", (p, msg) => { - print(msg); - p.supply_secret("password"); -}); -pam.connect("auth-info", (p, msg) => { - print(msg); - p.supply_secret(""); -}); -pam.connect("auth-error", (p, msg) => { - print(msg); - p.supply_secret(""); -}); - -pam.connect("success", p => { - print("authentication sucessful"); - loop.quit(); -}); -pam.connect("fail", (p, msg) => { - print(msg); - loop.quit(); -}); - -pam.start_authenticate(); - -loop.runAsync() - |