update implementation message

This commit is contained in:
AJ ONeal 2017-02-13 12:56:54 -07:00
parent dc67f63856
commit 18092c8063
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@
console.error(new Error('no providerUri').stack);
}
providerUri = oauth3.core.normalizeUri(providerUri);
console.warn('[oauth3.hooks.setSession] PLEASE IMPLEMENT -- Your Fault');
console.warn('[ERROR] Please implement OAUTH3.hooks.setSession = function (providerUri, newSession) { return newSession; }');
console.warn(newSession);
if (!oauth3.hooks._sessions) { oauth3.hooks._sessions = {}; }
oauth3.hooks._sessions[providerUri] = newSession;
@ -148,7 +148,7 @@
}
, getSession: function (providerUri) {
providerUri = oauth3.core.normalizeUri(providerUri);
console.warn('[oauth3.hooks.getSession] PLEASE IMPLEMENT -- Your Fault');
console.warn('[ERROR] Please implement OAUTH3.hooks.getSession = function (providerUri) { return savedSession; }');
if (!oauth3.hooks._sessions) { oauth3.hooks._sessions = {}; }
return oauth3.hooks._sessions[providerUri];
}