@livey0u It is just a requirejs module so just require it.
require(['components'], function (components) {
components.get('user/logout').off('click').on('click', function() {
// your custom behaviour here
});
});
Is there a way to implement redirect to previous page after oauth login, like at original login page /login?next=admin I mean something like this /auth/oauth?next=admin