'Create and return a new access token.'

def create_access_token(self, request, user, scope, client):

    _days = ((24 * 60) * 60)
    token_generator = BearerToken(expires_in=(settings.OAUTH_EXPIRE_PUBLIC_CLIENT_DAYS * _days), request_validator=oauth2_settings.OAUTH2_VALIDATOR_CLASS())
    self._populate_create_access_token_request(request, user, scope, client)
    return token_generator.create_token(request, refresh_token=True)
