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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commite28f94bf01544a6474abd88d900c4204a10521dc
tree996e65d756a224266a584fbad1f4c7f3081718fa
parent37d07f52bdb5484d895f66c293ce6c850939c18f
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>
(cherry picked from commit 551d839f90853b58f81d124c77442009d4df0cb4)
modules/luci-base/htdocs/luci-static/resources/luci.js