def make_token(cls, ephemeral_token: 'RedisEphemeralTokens') -> str:
        """
        Returns a token to be used x number of times to allow a user account to access
        certain resource.
        """
        value = ephemeral_token.key
        if ephemeral_token.scope:
            value += ''.join(ephemeral_token.scope)

        return get_hmac(cls.KEY_SALT + ephemeral_token.salt, value)[::2]
def make_token ( cls , ephemeral_token : 'RedisEphemeralTokens' ) -> str : value = ephemeral_token . key if ephemeral_token . scope : value += '' . join ( ephemeral_token . scope ) return get_hmac ( cls . KEY_SALT + ephemeral_token . salt , value ) [ : : 2 ]
Returns a token to be used x number of times to allow a user account to access
        certain resource.