wohali / oauth2-discord-new

New Discord Provider for the OAuth 2.0 Client
MIT License
118 stars 22 forks source link

RedirectURI missing #2

Closed HayateLaTech closed 6 years ago

HayateLaTech commented 6 years ago

If i use this:

$provider = new \Wohali\OAuth2\Client\Provider\Discord([
    'clientId' => 'ID',
    'clientSecret' => 'SECRET',
    'redirecturi' => 'http://localhost/someFolder/'
]);

the redirecturi doesn't actually get added to the authorization URL.

wohali commented 6 years ago

I believe case matters - can you try 'redirectUri'?

wohali commented 6 years ago

The commit above fixes the incorrect README.