Skip to content

Conversation

@ivangrozni
Copy link

Small improvement off this PR #33
Which addresses this issue https://www.drupal.org/project/cloudflare/issues/3149855

@froboy
Copy link

froboy commented May 4, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants