refactor: 💡 deauth should delete the auth token (#1256)

This commit is contained in:
Randall Morey authored and GitHub committed 2022-08-15 11:22:27 -07:00
1 parent e3324ad64a
commit 7386b2c9ed
4 files changed
+15 -10

No files matched your search

+2 -3
View File
@@ -37,10 +37,9 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator {
* @param {string} scopeID
* @return {string}
*/
buildDeauthEndpointURL({ scope: { id: scopeID } }) {
buildDeauthEndpointURL({ id }) {
const adapter = this.store.adapterFor('application');
const options = { adapterOptions: { method: 'deauthenticate' } };
return adapter.buildURL('scope', scopeID, options, 'findRecord');
return adapter.buildURL('auth-token', id, {}, 'findRecord');
}
/**