src/Laravel/LaravelOAuthBridge.php
public function login(NorthstarUserContract $user, AccessToken $token)
    {
        // Save the user's role to their local account (for easy permission checking).
        $user->setRole($token->getValues()['role']);
        $user->save();

        auth()->login($user, true);
    }
public function login(NorthstarUserContract $user, AccessToken $token)
    {
        // Save the user's role to their local account (for easy permission checking).
        $user->setRole($token->getValues()['role']);
        $user->save();

        auth()->login($user, true);
    }
public function login ( NorthstarUserContract $ user , AccessToken $ token ) { // Save the user's role to their local account (for easy permission checking). $ user -> setRole ( $ token -> getValues ( ) [ 'role' ] ) ; $ user -> save ( ) ; auth ( ) -> login ( $ user , true ) ; }
Log a user in to the application & update their locally cached role.

@param NorthstarUserContract|\Illuminate\Contracts\Auth\Authenticatable $user
@param AccessToken $token
@return void
Log a user in to the application & update their locally cached role .