I have added routes and JWT token in metadata but while passing token from RSocket client to RSocket server it is adding extra bytes in token.
Client side code -----------
ByteBuf simpleAuthentication = AuthMetadataCodec.encodeBearerMetadata(ByteBufAllocator.DEFAULT,
TenantContext.getCurrentToken().toCharArray());
CompositeMetadataCodec.encodeAndAddMetadata(metadata, ByteBufAllocator.DEFAULT,
"message/x.rsocket.authentication.bearer.v0", simpleAuthentication.asByteBuf());
Server-side token when trying to claim it :
"token" : "ïż½eyJhbGciOiJIUzUxMiJ9.xyz.demo",
As you can see when the token started there were some extra characters.
Does anyone know how to pass the JWT token in metadata in the RSocket client using SpringBoot and JAVA.