2

So I have an API server that uses golang and the jwt-go library to issue jwt and i want to have a socket.io server running using node.js and jsonwebtoken library that needs to decode and verify the token, so my question is can I issue a token from one library, decode and verify it from another?

Grokify
  • 15,092
  • 6
  • 60
  • 81
zola
  • 5,737
  • 8
  • 33
  • 48

1 Answers1

8

TL;DR: Yes.

Interoperability is kind of the point of using JSON web tokens. RFC 7519 explicitly defines (independent of implenentation language) how JWTs are to be issued and verified and all known implementations (at least those listed on the project website) follow this standard.

Personally, I've used jwt-go (Go), jsonwebtoken (Node.JS) and php-jwt (PHP) and jose4j (Java, Scala) all in conjunction and never encountered any interoperability issues.

Community
  • 1
  • 1
helmbert
  • 35,797
  • 13
  • 82
  • 95