php - Laravel Socialite: InvalidStateException - Stack Overflow ---- 回答 就这样封住吧

I was only experiencing this error when logging in via mobile web with the facebook app instead of facebook in browser. The facebook app uses the facebook browser after login instead of your current browser, so is unaware of previous state.

try {
    $socialite = Socialite::driver($provider)->user();
} catch (InvalidStateException $e) {
    $socialite = Socialite::driver($provider)->stateless()->user();
}

Original url: Access
Created at: 2019-11-21 09:59:45
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论