Open ivangrozni opened 3 years ago
I think doing our own checks on the validity of this token are going to result in problems. As per https://api.cloudflare.com/#user-api-tokens-verify-token it looks like tokens could have -
or _
as well. Instead of doing our own validation, could we make a call to GET user/tokens/verify
to have Cloudflare verify the token?
Small improvement off this PR https://github.com/d8-contrib-modules/cloudflarephpsdk/pull/33 Which addresses this issue https://www.drupal.org/project/cloudflare/issues/3149855