Read token name using function in auth view

This commit is contained in:
Moses Palmér
2016-12-29 09:53:34 +01:00
parent fd3eb4f65a
commit 7ca8cdeffb
2 changed files with 17 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ function handleLogin() {
* @return the name of the access token parameter
*/
function getTokenName(dets) {
return dets.tokenName;
return dets['x-tokenName'] || dets.tokenName;
}
for (var key in authSchemes) {