Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthController

Controller for OAuthentication via GitHub.

See IBaseController for more details.

Hierarchy

  • AuthController

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

path

path: string = authUrl.main

router

router: Router = express.Router()

Methods

Private initializeRoutes

  • initializeRoutes(): void

Private loggedIn

  • loggedIn(req: any, res: any): void
  • Checks if a user is authenticated.

    Parameters

    • req: any

      Request object

    • res: any

      Response object

    Returns void

Private logout

  • logout(req: any, res: any): void
  • Logging out of a session.

    Parameters

    • req: any

      Request object

    • res: any

      Response object

    Returns void

Private success

  • success(req: any, res: any): void
  • Sucess callback after authentication.

    Parameters

    • req: any
    • res: any

      Response object

    Returns void

Generated using TypeDoc