Pass scope and expiresAt as body params

This commit is contained in:
Girish Ramakrishnan
2018-04-28 20:41:59 -07:00
parent 7448dc5ec5
commit e34fecee5e
2 changed files with 7 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ angular.module('Application').controller('TokensController', ['$scope', 'Client'
var expiresAt = Date.now() + 100 * 365 * 24 * 60 * 60 * 1000; // ~100 years from now
Client.createTokenByClientId(client.id, expiresAt, function (error, result) {
Client.createTokenByClientId(client.id, '*' /* scope */, expiresAt, function (error, result) {
if (error && error.statusCode === 412) {
var actionScope = $scope.$new(true);
actionScope.action = '/#/settings';