Allow sync method
hongkongkiwi opened this issue · 1 comments
hongkongkiwi commented
It would be great if callback could be ignored if it's undefined. Right now it throws an error.
For example, I want to removeTokens but I don't care about the callback. Perhaps you could add a removeTokensSync method? and in removeTokens just check if callback is not null and is a function.
hongkongkiwi commented
My bad, looks like there is infact a sync method tryRemoveTokens