Skip to main content
Glama
AppLogout.js1.04 kB
export default { name: 'AppLogout', methods: { async handleSubmit() { try { await this.submitApi() showSuccessInfo("Logout success") // fetch devices this.$emit('reload-devices') } catch (err) { showErrorInfo(err) } }, async submitApi() { try { await http.get(`app/logout`) } catch (error) { if (error.response) { throw Error(error.response.data.message) } throw Error(error.message) } } }, template: ` <div class="green card" @click="handleSubmit" style="cursor: pointer"> <div class="content"> <a class="ui teal right ribbon label">App</a> <div class="header">Logout</div> <div class="description"> Remove your login session in application </div> </div> </div> ` }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samihalawa/whatsapp-go-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server