nfp_sites/filadelfia_archive/app/page_logout.js
Jonatan Nilsson 329a3e267c
Some checks reported warnings
/ deploy (push) Has been cancelled
filadelfia_archive: Rename
2023-11-30 04:21:05 +00:00

15 lines
281 B
JavaScript

const m = require('mithril')
const Authentication = require('./authentication')
const Logout = {
oninit: function(vnode) {
Authentication.clearToken()
m.route.set(vnode.attrs.redirect || '/')
},
view: function(vnode) {
return []
},
}
module.exports = Logout