16 lines
268 B
Go

package auth
import "github.com/aerogo/aero"
// Install ...
func Install(app *aero.Application) {
// Google
InstallGoogleAuth(app)
// Logout
app.Get("/logout", func(ctx *aero.Context) string {
ctx.Session().Set("userId", nil)
return ctx.Redirect("/")
})
}