luci-base: luci.js: add LuCI.session.getToken()
authorJo-Philipp Wich <jo@mein.io>
Sun, 26 Apr 2020 16:44:48 +0000 (18:44 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 26 Apr 2020 16:45:58 +0000 (18:45 +0200)
commit551d839f90853b58f81d124c77442009d4df0cb4
treeace325093a0ee9d26134ad4b3ce33a0b711e1bf8
parent49c6a810e9a705217f4543099d8188f0f3158f6c
luci-base: luci.js: add LuCI.session.getToken()

Since we're already have LuCI.session.getID() we should mirror the same
interface for retrieving the session token.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js