It’s hard to say why it wouldn’t be working without having a better understanding of what is going on. Can you please share examples of the tokens, and any other information you think is relevant? Also posting the full error is helpful.
Usually a signature error means that something in the token is being changed, or you are using the wrong keys.