artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
684 stars 216 forks source link

Token not found in session, are you sure you stored it? #180

Closed ehtasham-geode closed 7 years ago

ehtasham-geode commented 7 years ago

Getting error on Mozilla Firefox browser when using Facebook oauth login. Error come from following method: screenshot from 2017-03-31 18 41 44

vendor/artdarek/oauth-4-laravel/src/Artdarek/OAuth/TokenStorage.php

         */
        public function retrieveAccessToken($service)
        {
            $name = $this->storageName($service);
            if ($token = $this->session->get($name))
                return unserialize($token);

            throw new TokenNotFoundException('Token not found in session, are you sure you stored it?');
        }
ehtasham-geode commented 7 years ago

I am sorry i was missed the $token = $fb->requestAccessToken( $code ); code.