Utility functions for public links and embedding.
Utility functions for public links and embedding.
(get-in-unsigned-token-or-throw unsigned-token keyseq)
Find KEYSEQ in the UNSIGNED-TOKEN (a JWT token decoded by unsign
) or throw a 400.
Find KEYSEQ in the UNSIGNED-TOKEN (a JWT token decoded by `unsign`) or throw a 400.
(head url)
Returns the <meta>
/<link>
tags for an embeddable public page.
Returns the `<meta>`/`<link>` tags for an embeddable public page.
(iframe url width height)
Return an <iframe>
HTML fragment to embed a public page.
Return an `<iframe>` HTML fragment to embed a public page.
(unsign message)
Parse a "signed" (base-64 encoded) JWT and return a Clojure representation. Check that the signature is
valid (i.e., check that it was signed with embedding-secret-key
) and it's otherwise a valid JWT (e.g., not
expired), or throw an Exception.
Parse a "signed" (base-64 encoded) JWT and return a Clojure representation. Check that the signature is valid (i.e., check that it was signed with `embedding-secret-key`) and it's otherwise a valid JWT (e.g., not expired), or throw an Exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close