messagebird/messagebird-nodejs

Verify token method

fvdm opened this issue · 4 comments

fvdm commented

What is the preferred method name for token verification?

Verify now has read, create, delete and verify, but messagebird.verify.verify is not pretty.

Yes, not very pretty. The alternative would be to leave out verify, and put it under read with an optional token (which means it will verify).

For now, let's go with the ugly messagebird.verify.verify option.

fvdm commented

How about messagebird.verify.token?

I would leave it as messagebird.verify.verify. Even though it's a bit dubious, it does indicate what it does: verify. If you make it token, then that would be confusing as it could also (possibly) mean the creation of a token.

fvdm commented

OK I'll leave it like this.