def load_token(self, token, force=False):
        """Load data in a token.

        :param token: Token to load.
        :param force: Load token data even if signature expired.
                      Default: False.
        """
        try:
            data = self.loads(token)
        except SignatureExpired as e:
            if not force:
                raise
            data = e.payload

        del data["rnd"]
        return data
def load_token(self, token, force=False):
        """Load data in a token.

        :param token: Token to load.
        :param force: Load token data even if signature expired.
                      Default: False.
        """
        try:
            data = self.loads(token)
        except SignatureExpired as e:
            if not force:
                raise
            data = e.payload

        del data["rnd"]
        return data
def load_token ( self , token , force = False ) : try : data = self . loads ( token ) except SignatureExpired as e : if not force : raise data = e . payload del data [ "rnd" ] return data
Load data in a token.

        :param token: Token to load.
        :param force: Load token data even if signature expired.
                      Default: False.
Load data in a token .