Clojure package for Okta Auth JS
https://github.com/okta/okta-auth-js
To use cljsjs package from local project repo do following:
- In
project.clj
setup local repository
:repositories {"local" "file:repo"}
- Build package
boot package install target
- Deploy
.jar
archive to local project repo e.g.
mvn deploy:deploy-file -Dfile=okta-auth-js-3.1.0-0.jar -DartifactId=okta-auth-js -Dversion=3.1.0-0 -DgroupId=cljsjs -Dpackaging=jar -Durl=file:repo
- Finally add dependency to your maven repository
lein deps
[cljsjs/okta-auth-js "3.1.0-0"]
This jar comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require ["@okta/okta-auth-js"]))