PHPackages                             martinbean/socialite-discord-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. martinbean/socialite-discord-provider

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

martinbean/socialite-discord-provider
=====================================

A Discord provider for Laravel Socialite.

1.2.0(5y ago)2839.2k↑51.4%6[2 issues](https://github.com/martinbean/socialite-discord-provider/issues)MITPHP

Since May 22Pushed 3y agoCompare

[ Source](https://github.com/martinbean/socialite-discord-provider)[ Packagist](https://packagist.org/packages/martinbean/socialite-discord-provider)[ RSS](/packages/martinbean-socialite-discord-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Discord provider for Laravel Socialite
======================================

[](#discord-provider-for-laravel-socialite)

A provider for [Laravel Socialite](https://laravel.com/docs/master/socialite) that allows authentication as a Discord user or bot.

Installation
------------

[](#installation)

```
composer require martinbean/socialite-discord-provider:^1.2

```

Usage
-----

[](#usage)

The package registers a Socialite driver with the name of `discord`.

Before using the driver, create an OAuth application in Discord’s developer portal:

Set your client ID and client secret as environment variables, and then reference them in your **config/services.php** file. You will also need to add a redirect URL to your application if you intend to authenticate as a user.

```
