From 3932e006b9307cf2e5fae5d2d023e6fea6c240ed Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Tue, 10 Dec 2024 13:58:30 +0000 Subject: [PATCH] Remove unnecessary PJC code references --- .../lib-panoptes-js/src/experimental-auth.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/lib-panoptes-js/src/experimental-auth.js b/packages/lib-panoptes-js/src/experimental-auth.js index c04560683ed..7f500950b38 100644 --- a/packages/lib-panoptes-js/src/experimental-auth.js +++ b/packages/lib-panoptes-js/src/experimental-auth.js @@ -269,34 +269,6 @@ async function signIn (login, password, _store) { console.error('Panoptes.js auth.signIn(): ', err) throw(err) } - - /* - Original PJC code: - - const user = await this.checkCurrent(); - if (user) { - await this.signOut(); - return this.signIn(credentials); - } else { - console.log('Signing in', credentials.login); - const token = await getCSRFToken(config.host) - const data = { - authenticity_token: token, - user: { - login: credentials.login, - password: credentials.password, - remember_me: true, - }, - }; - - const signInRequest = this._makeSignInRequest(data); - this._currentUserPromise = signInRequest.catch(() => null); - await this._currentUserPromise; - this.emit('change', this._currentUserPromise); - - return signInRequest; - } - */ } export {