popcorn :: GithubLogout :: defaultinit
# Destroy user session and redirect to homepage.
class GithubLogout
super Handler
# The URL in your application where users will be sent after logout.
#
# If `null`, the root uri `/` will be used.
var redirect_uri: nullable String is writable
redef fun get(req, res) do
var session = req.session
if session != null then
session.user = null
end
res.redirect redirect_uri or else "/"
end
end
lib/popcorn/pop_auth.nit:253,1--269,3