Larascord is a package that allows you to authenticate users in your Laravel application using Discord.
composer require jakyeru/larascord
php artisan larascord:install
CLIENT SECRETfrom the "OAuth2" tab of your application.
Your application should now be able to authenticate users using Discord.
php artisan larascord:publish
php artisan vendor:publish --provider="Jakyeru\Larascord\LarascordServiceProvider" --tag="config"
php artisan larascord:publish --force
You shouldn't need these commands as the configuration is automatically published when the package is installed.
||Redirects the user to Discord's OAuth2 authorization page.||REDIRECT||
||Invalidates the current session.||
||Callback route for Discord OAuth2 authentication.||
||Redirects to the login page. (Used to access secure parts of the application through the middleware
Invalid OAuth2 redirect_uri
This error occurs when your
redirect_uri is not listed in your application's OAuth2 redirects.
If you are sure your
redirect_uri is correct, make sure that
APP_URL is correct in
cURL error 60: SSL certificate problem: unable to get local issuer certificate
This issue is not caused by Larascord. You can find a fix in #27.
If you encounter any other error(s), please open an issue on GitHub.