src/Synapse/SocialLogin/SocialLoginService.php
protected function updateSocialLoginToken(
        SocialLoginEntity $socialLogin,
        LoginRequest $request
    ) {
        $socialLogin->setAccessToken($request->getAccessToken())
            ->setAccessTokenExpires($request->getAccessTokenExpires())
            ->setRefreshToken($request->getRefreshToken());

        $this->socialLoginMapper->persist($socialLogin);
    }
protected function updateSocialLoginToken(
        SocialLoginEntity $socialLogin,
        LoginRequest $request
    ) {
        $socialLogin->setAccessToken($request->getAccessToken())
            ->setAccessTokenExpires($request->getAccessTokenExpires())
            ->setRefreshToken($request->getRefreshToken());

        $this->socialLoginMapper->persist($socialLogin);
    }
protected function updateSocialLoginToken ( SocialLoginEntity $ socialLogin , LoginRequest $ request ) { $ socialLogin -> setAccessToken ( $ request -> getAccessToken ( ) ) -> setAccessTokenExpires ( $ request -> getAccessTokenExpires ( ) ) -> setRefreshToken ( $ request -> getRefreshToken ( ) ) ; $ this -> socialLoginMapper -> persist ( $ socialLogin ) ; }
Update a users OAuth token, token expiration and refresh token information
when they log in

@param  SocialLoginEntity
@param  LoginRequest $request
Update a users OAuth token token expiration and refresh token information when they log in