refactor: 💡 deauth should delete the auth token (#1256)
This commit is contained in:
1 parent
e3324ad64a
commit
7386b2c9ed
4 files changed
+15
-10
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user