'Returns ``True`` if credentials expire sooner than specified.
:param int seconds:
Number of seconds.
:returns:
``True`` if credentials expire sooner than specified,
else ``False``.'

def expire_soon(self, seconds):

    if self.expiration_time:
        return (self.expiration_time < (int(time.time()) + int(seconds)))
    else:
        return False
