You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably missing something obvious, but from the readme example:
(nsmy.app
(:require [compojure.core :as c]
[compojure.handler :as h] handler
[hiccup.page :as p]
[persona-kit.core :as i]))
;; On your login page, use include-persona to bring in persona resources, ;; sign-in-button to show the login button.
(c/defroutesapp-routes
(c/GET"/" [] (p/html5 [:head
[:title"Login page"]
(i/include-persona)]
[:body (i/sign-in-button)])))
How are you getting persona-kit.core to have the cljs functions? Only persona-kit.core/valid? and persona-kit.core/verify-assertion are available to me.
The text was updated successfully, but these errors were encountered:
Hi, sorry for the lack of a response, I did not get any notification that an issue had been opened, which I will attempt to rectify immediately. This could perhaps be namespaced better, but there are two persona-kit.core namespaces in the project:
src/persona_kit/core.clj which is the Clojure namespace that has valid? and verify-assertion.
src/cljs/persona_kit/core.cljs which is the ClojureScript namespace that has the ClojureScript functions used in the README snippet above.
When using persona-kit from a ClojureScript project and using cljsbuild, cljsbuild should only build/include the cljs version. However, if you are using a different build system, or trying to use it with Pedestal, I can see this not working as expected and only the Clojure version will be brought in.
I'm probably missing something obvious, but from the readme example:
How are you getting persona-kit.core to have the cljs functions? Only
persona-kit.core/valid?
andpersona-kit.core/verify-assertion
are available to me.The text was updated successfully, but these errors were encountered: