steps towards creating auth cookie

This commit is contained in:
Helmut Merz 2025-01-24 21:47:58 +01:00
parent 3cf5700a3d
commit 95542a0f5a

View file

@ -5,10 +5,17 @@
(:local-nicknames (:auth :scopes-auth)
(:config :scopes/config)
(:core :scopes/core)
(:jwt :scopes/web/jwt)
(:server :scopes/web/server)
(:shape :scopes/shape)
(:util :scopes/util))
(:export #:login))
(in-package :scopes-auth/web)
(defun login (ctx msg)
(core:echo ctx msg))
(let* ((prc (auth:login (shape:data msg))))
;(jwt:create ...)
;(server:set-cookie ctx ...)
;(core:echo ctx ...) ; render htmx response
(core:echo ctx msg)))