We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb6955 commit 8db3fe8Copy full SHA for 8db3fe8
app/Http/Controllers/Frontend/Social/MastodonController.php
@@ -69,6 +69,10 @@ public function callback(): RedirectResponse {
69
config(['services.mastodon.client_id' => $server->client_id]);
70
config(['services.mastodon.client_secret' => $server->client_secret]);
71
72
+ if (request()->has('error')) {
73
+ return redirect()->route('login')->with('error', \request('error_description'));
74
+ }
75
+
76
$socialiteUser = Socialite::driver(driver: 'mastodon')->user();
77
$user = MastodonBackend::getUserFromSocialite($socialiteUser, $server);
78
if (!auth()->check()) {
0 commit comments