Question: how oauth and jwt works?
Answer: OAuth 2.0 defines a protocol, i.e. specifies how tokens are transferred, JWT defines a token format. OAuth 2.0 and "JWT authentication" have similar appearance when it comes to the (2nd) stage where the Client presents the token to the Resource Server: the token is passed in a header.