File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/lrsql/admin/interceptors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4747
4848(defn validate-jwt
4949 " Validate that the header JWT is valid (e.g. not expired and signed properly).
50- If no-val? is true run an entirely separate decoding that gets the username
50+ If ` no-val?` is true run an entirely separate decoding that gets the username
5151 and issuer claims, verifies a role and ensures the account if necessary."
5252 [secret leeway {:keys [no-val?] :as no-val-opts}]
5353 (interceptor
8181 :body {:error " Unauthorized JSON Web Token!" }}))))}))
8282
8383(defn validate-one-time-jwt
84+ " Validate one-time JWTs. Checks that they are not expired and are signed
85+ properly just like regular JWTs, then automatically revoke them."
8486 [secret leeway]
8587 (interceptor
8688 {:name ::validate-one-time-jwt
You can’t perform that action at this time.
0 commit comments