projects
/
squeep-indie-auther
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix field name inside packed tickets
[squeep-indie-auther]
/
src
/
manager.js
diff --git
a/src/manager.js
b/src/manager.js
index ecec13491dee05fd13b7f32a92129331b4871609..2b64ed16b14f50558b614b2b33afc2ca4f2145e9 100644
(file)
--- a/
src/manager.js
+++ b/
src/manager.js
@@
-1197,7
+1197,7
@@
class Manager {
const nowEpoch = common.dateToEpoch();
return this.mysteryBox.pack({
c: common.requestId(),
const nowEpoch = common.dateToEpoch();
return this.mysteryBox.pack({
c: common.requestId(),
- i
ss
: nowEpoch,
+ i
at
: nowEpoch,
exp: nowEpoch + ticketLifespanSeconds,
sub: subject,
res: resource,
exp: nowEpoch + ticketLifespanSeconds,
sub: subject,
res: resource,
@@
-1228,7
+1228,7
@@
class Manager {
const ticketObj = await this.mysteryBox.unpack(ticket);
return {
codeId: ticketObj.c,
const ticketObj = await this.mysteryBox.unpack(ticket);
return {
codeId: ticketObj.c,
- issued: new Date(ticketObj.i
ss
* 1000),
+ issued: new Date(ticketObj.i
at
* 1000),
expires: new Date(ticketObj.exp * 1000),
subject: new URL(ticketObj.sub),
resource: new URL(ticketObj.res),
expires: new Date(ticketObj.exp * 1000),
subject: new URL(ticketObj.sub),
resource: new URL(ticketObj.res),