@annoto/ims-lti
Version:
Module for building an LTI Tool Provider and accept LTI launch requests
31 lines (26 loc) • 580 B
JavaScript
class NonceStore {
constructor() {
this.isNew = this.isNew.bind(this);
this.setUsed = this.setUsed.bind(this);
}
isNonceStore() {
return true;
}
isNew() {
for (let i in arguments) {
const arg = arguments[i];
if (typeof arg === 'function') {
return arg(new Error('NOT IMPLEMENTED'), false);
}
}
}
setUsed() {
for (let i in arguments) {
const arg = arguments[i];
if (typeof arg === 'function') {
return arg(new Error('NOT IMPLEMENTED'), false);
}
}
}
}
module.exports = NonceStore;