question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello. I am confused how to call the private logout function. Here is my code: Login

converse.initialize({
	bosh_service_url: 'http://localhost:7070/http-bind/',
	show_controlbox_by_default: true,
	debug: true,
	auto_login: true,
	auto_reconnect: true,
	allow_logout: false,
	locked_domain: "elemechinc.com",
	jid: email_address,
	password: password,
	auto_join_rooms: [{
		"jid": "testing@conference.desktop-bn13agh",
		"nick": user_name
	}],
	message_archiving: "always",
	play_sounds: true,
	sounds_path: "/osrc/converse/sounds/",
	notification_icon: "/osrc/converse/logo/conversejs.png",
	use_emojione: true,
	emojione_image_path: "/osrc/converse/EmojiOne_3.1.1_128x128_png/"
});

Logout

converse.plugins.add('myplugin', {
	initialize: function () {
		this._converse.api.user.logout();
	}
});

When I call the logout code, it does not work. What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fingertips-solutionscommented, Apr 23, 2019

Can anyone tell me how to logout and redirect to custom login page ? i have custom login page and once that login is approved i am auto login xmpp users… this part is ok but when i try to logout it not redirecting me back to my custom login page…

0reactions
xinthosecommented, Apr 10, 2020

@FaizanZahid I did not figure out how to use custom plugins. I stopped my development on that project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign out of Gmail - Android - Google Support
Sign out options · On your Android phone or tablet, open the Gmail app . · In the top right, tap your profile...
Read more >
How to sign out of Google account on Android: Check here
On your Android phone or tablet, open the Gmail app. · In the top right, tap on your profile picture. · Tap on...
Read more >
How to Sign Out of Google on a Desktop or Mobile Device
How to sign out of Google on an Android · 1. Tap on Settings and select Accounts. · 2. Select Google. · 3....
Read more >
How To Sign Out of a Google Account & Sign out of Gmail
In this article, you'll learn how to sign out of a Google account on all platforms (Gmail sign out of all devices):. <<...
Read more >
Log out of Instagram - Instagram Help Center
Scroll to the bottom of the page and tap Log out [username]. 4. Tap Log out.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found