denali-js/denali-auth

View on GitHub
app/actions/auth/logout.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Action, Response } from 'denali';
import { authenticate } from '../../../lib';
import { mix } from 'denali-typescript';

export default class DeleteSessionAction extends mix(Action).add(authenticate) {

  async respond() {
    await this.session.delete();
    return new Response(204);
  }

}