joelbutcher / socialstream

OAuth for Laravel, simplified.
https://docs.socialstream.dev
MIT License
433 stars 66 forks source link

[5.x] Use provider names in error messages #315

Closed SRWieZ closed 11 months ago

SRWieZ commented 11 months ago

Summary

Fix OAuth callback error message

Explanation

The OAuth callback error was not displaying the provider name in the message.

when using a config like this, without Label:

return [
    'middleware' => ['web'],
    'prompt' => 'Or Login Via',
    'providers' => [
        Providers::github(),
    ],
];

Checklist

joelbutcher commented 11 months ago

Nice one, thanks!