Skip to content

Commit

Permalink
Remove unnecessary PJC code references
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Dec 10, 2024
1 parent 6cf3dd2 commit 18cb311
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions packages/lib-panoptes-js/src/experimental-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 18cb311

Please sign in to comment.