Auth0 is sending a RS256 signed token instead of HS256 signed token

I am trying to obtain an auth token with Auth0 java client.

In Auth0, I have a non interactive client. JsonWebToken Signature Algorithm is set to HS256 in the client. I use following code to obtain the token.

AuthAPI auth = new AuthAPI("my.domain", "my_client_id", "my_client_secret");
AuthRequest request = auth.login("username", "password").setAudience("my_audience");
TokenHolder holder = request.execute();

But, the token I receive is signed with RS256 instead of HS256.

What could be the problem here?

lahiruchandima, I’m running into the same issue: I get a token back, but instead of being an HS256 token, it’s a RS256 one, as indentified by JWT.io. Any hope?

I got an answer for this in Stack Overflow. Auth0 is sending a RS256 signed token instead of HS256 signed token - Stack Overflow

I got an answer for this in Stack Overflow. Auth0 is sending a RS256 signed token instead of HS256 signed token - Stack Overflow