zenodo_accessrequests/tokens.py
def create_token(cls, obj_id, data, expires_at=None):
        """Create the secret link token."""
        if expires_at:
            s = TimedSecretLinkSerializer(expires_at=expires_at)
        else:
            s = SecretLinkSerializer()

        return s.create_token(obj_id, data)
def create_token(cls, obj_id, data, expires_at=None):
        if expires_at:
            s = TimedSecretLinkSerializer(expires_at=expires_at)
        else:
            s = SecretLinkSerializer()

        return s.create_token(obj_id, data)
def create_token ( cls , obj_id , data , expires_at = None ) : if expires_at : s = TimedSecretLinkSerializer ( expires_at = expires_at ) else : s = SecretLinkSerializer ( ) return s . create_token ( obj_id , data )
Create the secret link token.
Create the secret link token .