Auth Module
1.0.0
1.0.0
  • README
  • docs
    • providers
      • GitHub
      • Google
      • Auth0
      • Laravel Passport
      • Facebook
    • Auth Module
    • Migration Guide
    • guide
      • Middleware
      • Providers
      • Setup
      • Schemes
    • recipes
      • Extending Auth plugin
    • api
      • API
      • options
      • storage
      • auth
    • schemes
      • Local
      • Oauth2
    • glossary
  • .github
    • ISSUE_TEMPLATE
  • CHANGELOG
Powered by GitBook
On this page
  • Usage
  • Obtaining client_id and client_secret
  1. docs
  2. providers

GitHub

PreviousprovidersNextGoogle

Last updated 5 years ago

Usage

auth: {
  strategies: {
      github: {
        client_id: '...',
        client_secret: '...'
      },
  }
}

Anywhere in your application logic:

this.$auth.loginWith('github')

💁 This provider is based on and supports all scheme options.

Obtaining client_id and client_secret

This option is REQUIRED. To obtain one, create your app in and use provided "Client ID" and "Client Secret".

Source Code
oauth2 scheme
Create a new Oauth APP