Laravel Socialite: Invalid request. Missing OAuth verifier. (Twitter)

前端 未结 2 1584

This is my first time working with Socialite and I can\'t seem to get it to work correctly.

Essentially, all I want is to return some account details of the currently au

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 11:54

    Check this syntax

    $socialAccount = Socialite::driver('twitter')->user();
    

    If you want the account details of the currently authenticated user, use the same old

    $user = Auth::user();
    

提交回复
热议问题