def session_token(self):
        """Return OAuth session token."""
        session_token = None
        if self.user_id is not None:
            session_token = token_getter(self.remote)
        if session_token:
            token = RemoteToken.get(
                self.user_id, self.remote.consumer_key,
                access_token=session_token[0]
            )
            return token
        return None
def session_token ( self ) : session_token = None if self . user_id is not None : session_token = token_getter ( self . remote ) if session_token : token = RemoteToken . get ( self . user_id , self . remote . consumer_key , access_token = session_token [ 0 ] ) return token return None
Return OAuth session token.