Publish Docker image / build-and-push (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s
Multi-user image hosting with RBAC, upload preferences, and admin settings.
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
import { destroySession } from '../../utils/auth'
|
|
import { clearLegacyAuthCookie } from '../../utils/access'
|
|
import { clientIp, logInfo } from '../../utils/logger'
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
await destroySession(event)
|
|
clearLegacyAuthCookie(event)
|
|
logInfo('logout', { ip: clientIp(event) })
|
|
return { success: true }
|
|
})
|